Advertisement

C/C++

Started by December 30, 1999 09:20 PM
1 comment, last by GameDev.net 25 years, 2 months ago
Can anybody tell me how to clear the screen in a console application?
#include < cstdlib>
...
using namespace std;
....

system("cls");

....


always works, except i'm sure micro$oft has some special (bloated) function to do the same thing. i'm not too knowledgable of windows stuff as i am a unix coder..

but i hope that works for you

[This message has been edited by zerovoid (edited December 30, 1999).]

[This message has been edited by zerovoid (edited December 30, 1999).]

[This message has been edited by zerovoid (edited December 30, 1999).]

Advertisement
Or you can use clrscr() in conio.h

http://qoy.tripod.com

This topic is closed to new replies.

Advertisement