How to clear screen in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to clear screen in c++

29th Jun 2017, 5:13 PM
Murtaza Wadlawala
Murtaza Wadlawala - avatar
8 Answers
+ 3
@Martin Here's something shocking - https://turboc.codeplex.com/ This person describes a way to run Turbo C++ on a Windows 10 PC ... Im shocked. These people then post videos for the same, still continuing the old Turbo standards and spoiling the name of C++. These are the people who live in the past, and consider C++ a dying language...
1st Jul 2017, 2:03 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 1
clrscr(); and Don't forget to include conio.h header file.
29th Jun 2017, 5:20 PM
Sumit
Sumit - avatar
0
I m only using clrscr(); so i mgetting problem
29th Jun 2017, 5:29 PM
Murtaza Wadlawala
Murtaza Wadlawala - avatar
0
Thanks for helping
29th Jun 2017, 5:29 PM
Murtaza Wadlawala
Murtaza Wadlawala - avatar
0
Even you can use system("cls") ;
29th Jun 2017, 6:54 PM
Anshul Garg
Anshul Garg - avatar
- 1
for turbo c++ compilers use clrscr() method predefined in the conio.h header file and for dev c++ compilers you actually dont need to clear screen it automatically do it if you want to you do it by using system ("cls") Hope it helps! Thank You
30th Jun 2017, 11:12 AM
Dhruv Sharma
Dhruv Sharma - avatar
- 2
Ok thanks
29th Jun 2017, 5:28 PM
Murtaza Wadlawala
Murtaza Wadlawala - avatar
- 4
clrscr ();
29th Jun 2017, 5:18 PM
‎ ‏‏‎Anonymous Guy