Er......in DOS prompt, there is a command called 'cls' to clear the screen. How do I write this in code? Is there a special keyword or function provided for this purpose?
Printable View
Er......in DOS prompt, there is a command called 'cls' to clear the screen. How do I write this in code? Is there a special keyword or function provided for this purpose?
clearscreen is explained in the FAQ.
er......the FAQ section of wat?
Code:
#include <stdlib.h>
int main()
{
system("cls");
return 0;
}