clear terminal c++ code example
Example 1: c++ clear console
#include <Windows.h>
int main() {
//print stuff
system("cls"); // clear console
}
Example 2: clear console c++
system ("CLS");
Example 3: hide terminal window c++
myConsole = GetConsoleWindow();
ShowWindow(myConsole,SW_HIDE);