xandox
asked on
clear screen
The only way that I know how to clear a the MSDOS screen while executing a program is to print out a bunch of end lines. Is there a better way to do this that will put the cursor back at the top of the screen when done?
Why rejected? Doesn't work, or you didn't understand it?
ASKER
I tried using the clrscr() from conio.h but I kept getting errors when I compiled saying that clrscr() was an undeclared identifier.
Am I missing anything else?
Am I missing anything else?
There is no standard way to do it. You must say what compiler you are using.
And which operating system, too. Are you talking about a console window in Win95 or Win98 or WinNT? Or are you talking about a DOS window on 16-bit Windows?
.B ekiM
.B ekiM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Some additional comments:
* Don't forget to #include <wincon.h>
* PERR() is a user-supplied function or macro that is supposed to display an error. Either remove all references to it or write it. Otherwise the code will not compile.
A DOS window in Win16 is equivalent to a DOS application.
* Don't forget to #include <wincon.h>
* PERR() is a user-supplied function or macro that is supposed to display an error. Either remove all references to it or write it. Otherwise the code will not compile.
A DOS window in Win16 is equivalent to a DOS application.
And the autograder hits again!
#include <conio.h>
//...
clrscr();
let me know if you want further explaination