Friday, July 31, 2009

Is there a way that i can clear the screen in C++ without useing system("cls");?

i know that i can use:





#include %26lt;stdlib%26gt;





system("cls");





this clears the screen but more experienced programmers tell me that system(); is sloppy form, so how can i do this differently?

Is there a way that i can clear the screen in C++ without useing system("cls");?
after starting void main() in the very first line write


clrscr();





nd remember to include conio.h
Reply:Use clrscr() function in stdio.h

lady palm

No comments:

Post a Comment