🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

C/C++

Started by
1 comment, last by GameDev.net 24 years, 6 months ago
Can anybody tell me how to clear the screen in a console application?
Advertisement
#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).]

Or you can use clrscr() in conio.h

http://qoy.tripod.com

This topic is closed to new replies.

Advertisement