Answers for "how to clear a console in c++"

C++
11

c++ clear console

#include <Windows.h>

int main() {
	//print stuff
    
	system("cls"); // clear console
}
Posted by: Guest on March-02-2020
2

how to clear console c++

#ifdef __cplusplus__
  #include <cstdlib>
#else
  #include <stdlib.h>
#endif

if (system("CLS")) system("clear");
Posted by: Guest on December-08-2020

Browse Popular Code Answers by Language