For Cygwin users without a simple
clear command on Win32:
1 2 3 4 5 6 7 8 9 10
|
// clear.cpp
#include <iostream>
using namespace std;
int main()
{
char a=27u;
cout << a << "[2J";
return 0;
}
|
To compile:
|
g++ clear.cpp -o clear.exe
|
Last edited on
It'd be nice to see some kind of an explanation along with this code. I don't have any idea what this article is about.