+ 1
Clearing Screen in loop
If I want to clear my screen in a loop which function I should use in c++ ? And which file is required to be included in C++
5 Réponses
+ 4
You can use system("cls"); in windows. but you need to include header file stdlib.h header file.
For Linux or UNIX use clear instead of cls.
+ 2
you can use clrscr(); but use conio.h
+ 1
does clrscr() work in sololearn compiler in code playground.
@sandeep chatterjee
+ 1
I don't know Sagar it may work
+ 1
Whenever i am using clrscr() it says ERROR: not declared in scope even I have used conio.h header file.
Am i missing something.