c++ how to clear terminal code example
Example 1: clear console c++
system ("CLS");
Example 2: how to clear console c++
#ifdef __cplusplus__
#include <cstdlib>
#else
#include <stdlib.h>
#endif
if (system("CLS")) system("clear");
system ("CLS");
#ifdef __cplusplus__
#include <cstdlib>
#else
#include <stdlib.h>
#endif
if (system("CLS")) system("clear");