0
Clear screen in SoloLearn C++
How is it possible to clear screen in C++? System("cls") does not work.
1 Answer
+ 8
system("CLS") is windows specific only. It doesn't work in other OSs.
Instead of it you can use,
cout << string(10, '\n');
This command won't actually clears the screen but it prints newline the number of times specified.