is there a clear screen command?
Printable View
is there a clear screen command?
Read the FAQ.
obviously clrscr() is the clearing function. Include conio.h.Code:#include <conio.h>
#include <iostream.h>
int main(void)
{
cout <<"The Screen is not cleared. Press any key." << endl;
getch();
clrscr(); //CLEAR THE SCREEN!!!
cout << "Woah! The other text isn't there anymore. The Screen has been cleared." << endl;
return(0);
}