void HANGMAN::ClearScreen(){ //Clears the screen in radius {80,30}
COORD homeCoord = {0,0};
//{80,30} is enough to clear the previous game <- this line
SetConsoleCursorPosition (hStdout, homeCoord);
for (int row = 0; row < 30; row++){
for (int col = 0; col < 80; col++){
cout << ' ';
}
}
SetConsoleCursorPosition (hStdout, homeCoord);
}
the combo of //{ , if your try to hide that function body, you will hide all of the .cpp file, and you cant get acces to the functions below ClearScreen().
If i make // { with a whitespace, everything will be ok, but without a whitespace it get bugged