Skip to content
Is it possible to clear the screen?
Profile icon

Is it possible to clear the screen in I want to be able to clear the screen after the player has entered some input.

You are viewing a single comment. View All
Profile icon

You could output a heap of newlines.

void clearScreen(int numLines) { for (int i = 0; i < numLines; i++) { cout << "\n"; } } // Call the function clearScreen(40);