rendered paste body// Some of this code was obtained from http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385#ifdef WINDOWSextern "C"{ #include <windows.h> void clrscr() { COORD coordScreen = { 0, 0 }; DWORD cCharsWritten; CONSOLE_SCREEN_BUFFER_INFO csbi; DWORD dwConSize; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); GetConsoleScreenBufferInfo(hConsole, &csbi); dwConSize = csbi.dwSize.X * csbi.dwSize.Y; FillConsoleOutputCharacter(hConsole, TEXT(' '), dwConSize, coordScreen, &cCharsWritten); GetConsoleScreenBufferInfo(hConsole, &csbi); FillConsoleOutputAttribute(hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten); SetConsoleCursorPosition(hConsole, coordScreen); }}#elif defined(NIX)void clrscr(){ system("clear");}#elif defined(DOS)void clrscr(){ system("cls");}#endif