Is there a C command to clear the screen, like the DOS "CLS"?
Printable View
Is there a C command to clear the screen, like the DOS "CLS"?
if u are in unix envirenment u can try the following
or include the file curses.h and u can use the function clear(); to clear the screenCode:system("clear");
under DOS u can use clrscr(); or system("cls"); to achieve the same.
>>system("clear");
And the FAQ explains just why you shouldn't do that.