Simple way to clear console?

Jul 26, 2008 at 9:31pm
I was just wondering if there was a simple quick and easy command to clear the console screen?
Jul 26, 2008 at 10:27pm
See Grey Wolf's post here:
http://www.cplusplus.com/forum/beginner/1988/page3.html

However, you really shouldn't be doing that for normal stream applications. The only portable way to achieve the same is just to output a zillion newlines:

cout << string( 100, '\n' );

Hope this helps.
Last edited on Jul 26, 2008 at 10:27pm
Jul 28, 2008 at 9:13am
system("cls");

and people will be like BLA BLA BLA about system commands
ignore them if your just doing a quick thinko use that!!!!
Topic archived. No new replies allowed.