//Courtesy of Allan Drach
//Holy Family, CMIS 107
#include<windows.h> // This is needed for the function to compile
void ClearScreen()
/* Clears the console screen
Copied from
http://www.enisoc.com/users/cpp/articles/clrscr/ */
{
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
COORD coord = {0, 0};
DWORD count;
CONSOLE_SCREEN_BUFFER_INFO csbi;
GetConsoleScreenBufferInfo(hStdOut, &csbi);
FillConsoleOutputCharacter(hStdOut, ' ', csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
SetConsoleCursorPosition(hStdOut, coord);
}