How do I make system("cls"); work in Sololearn for C++? (using this does not clear the screen for me here) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I make system("cls"); work in Sololearn for C++? (using this does not clear the screen for me here)

23rd Nov 2017, 6:42 PM
1604064_Sharif
1604064_Sharif - avatar
4 Answers
0
Can you show an example? :)
23rd Nov 2017, 7:47 PM
avatarluca
avatarluca - avatar
0
kurwis, remember I was working on a turn based strategy game? https://www.sololearn.com/discuss/825084/?ref=app In the game every time you make a move, the previous screen gets cleared and a new screen comes showing whatever move you made. I was planning on uploading the code in Sololearn. But unless I can clear the screen, I can not make that happen in Sololearn.
24th Nov 2017, 4:46 AM
1604064_Sharif
1604064_Sharif - avatar
0
Valenzelektron (Valence electron), Here is a simple Hello world code. If system("cls") worked, only "World" would have been printed. https://code.sololearn.com/cKy859PiYe7W/?ref=app
24th Nov 2017, 4:53 AM
1604064_Sharif
1604064_Sharif - avatar
0
Is there any alternative way to clear screen in sololearn?
27th Nov 2017, 7:02 AM
1604064_Sharif
1604064_Sharif - avatar