Mail Archives: djgpp/2000/04/18/13:23:22
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 -