I need a cross platform solution for clearing the console in both Linux and Windows written in C++. Are there any functions in doing this? Also make note that I don\'t want
Short answer
void cls(void) { system("cls||clear"); return; }
Long answer, please read:
system("pause") clarification