Hi,
This probably seems like a stupid question, but what is the best way to clear the screen of a console application?
I've tried cout.clear(), but I am unsure what arguments need to be passed.
Thanks in advance...
Hi,
This probably seems like a stupid question, but what is the best way to clear the screen of a console application?
I've tried cout.clear(), but I am unsure what arguments need to be passed.
Thanks in advance...
well I haven't made a program with that for a while, but I believe that it is clrscr(); and you will need to include conio.h
whoops
at last, i get to help someone! ok, its real simple. i use msvc++ 6. put this in:
system("CLS");
works perfect, i dont think you need to include any extra header files, if so just tell me and i'll find out.
That works really well, much simpler than the method(s) in the faq...
Thanks!
clrscr() is less letters, and isn't slow like the system command.