does any one know what you have to type in for the clear screen instruction i thought it was clr.scr() but its not working and im not sure what library to include
please help
does any one know what you have to type in for the clear screen instruction i thought it was clr.scr() but its not working and im not sure what library to include
please help
Please consult the FAQ.
The link is just below. Try to read and understand it.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
The header file to include is conio.h and the function name is
clrscr(); please not this header file is of turbo c++ i am not sure whether it would work on other compilers.. But any way give it a try...
I am using
system ("cls");
hope that's what you were looking for
Code:void clear() { int i,j,k; i = 80; j = 26 k = i * j; while (j >= 0) { cout << ' '; --j; } cout.flush(); } or void clear() { int i=30; while (i >=0) { cout << '\n'; --i; } cout.flush() }
Last edited by Betazep; 02-06-2002 at 06:16 PM.
Blue