//Function to clear the screen void clearScreen() { #ifdef _WIN32 system("cls"); #else system("clear"); #endif }