0

Clear screen in SoloLearn C++

How is it possible to clear screen in C++? System("cls") does not work.

2nd Feb 2019, 3:46 PM
Mini Coe
Mini Coe - avatar
1 Resposta
+ 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.
2nd Feb 2019, 5:30 PM
blACk sh4d0w
blACk sh4d0w - avatar