www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/18/13:23:22

From: "Hackrus" <hackrus AT hotmail DOT com>
References: <eQP3QX9p$GA DOT 274 AT net025s> <a04310101b51fd999f90c@[158.142.75.53]> <#ncDhZDq$GA DOT 261 AT net003s> <8desjg$iai$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <OeGJIhIq$GA DOT 202 AT net025s>
Subject: Re: How could I clear screen in C++???
Date: Tue, 18 Apr 2000 08:05:10 +0200
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <uMZlCQVq$GA.300@net003s>
Newsgroups: comp.os.msdos.djgpp
NNTP-Posting-Host: ipc379bd73.dial.wxs.nl 195.121.189.115
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have found a way of doing this. If you put:
int i;
for (i=0;i<50;i++)
cout << "\n" << endl;
on the top of the text where the screen should be deleted, en put this:
int i;
for (i=0;i<??;i++)
cout << "\n" << endl;
on the bottom of the text, then you should fill in 24-the rows of text=??
So if you have 4 rows of text on the screen, do this:
int i;
for (i=0;i<20;i++)
cout << "\n" << endl;
this would let you scroll down, so the text is at the top of the screen.
I now it's not a good way of clearing the screen, but it's possible in this
way!!
(Sorry for my bad english!!).
Hope you guys now a better way for doing this!!
Thanx.


Hackrus <hackrus AT hotmail DOT com> schreef in berichtnieuws
OeGJIhIq$GA DOT 202 AT net025s...
> I just give me an error message. The errormessage is: parse before '}'.
> That's it. But is the message above is also a way of doing this. This one
> works, but it goes to the bottom of the screen, and it's NOT on the top of
> the screen.
> Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> schreef in
> berichtnieuws 8desjg$iai$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE...
> > Hackrus <hackrus AT hotmail DOT com> wrote:
> > [...]
> > > But, the function int clrscr() won't work. I really need a function
> > > that will clear my screen!!
> > [...]
> >
> > "Won't work" doesn't tell us a thing about your actual problem. Show
> > us *how* it refused to work. Error message, crash dump, whatever. A
> > small compilable example we could try on our own machines would be
> > even better...
> >
> >
> > --
> > Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
> > Even if all the snow were burnt, ashes would remain.
>
>




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019