There is a solution for tricks:
if (system("clear"))
system("cls");
For Unix, it works fine. On Windows, this will result in an error, for example
'clear' is not recognized as an internal or external command, operating program, or batch file.
While it will be cleared right now, "cls". Therefore, in the command prompt window it will not leave any track .: D