Function to clear screen beside clrscr() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Function to clear screen beside clrscr()

as per new norms if we can't use conio.h as header file then what should I use to clear the screen content.

1st Mar 2017, 6:18 PM
Priyanka Singh
Priyanka Singh - avatar
2 Answers
+ 4
Try outputting 100 newlines.😉😉😉 for(int I=0;I<100;I++) cout<<endl;
1st Mar 2017, 6:47 PM
Megatron
Megatron - avatar
+ 3
std::system("cls");
1st Mar 2017, 7:33 PM
Jakub Stasiak
Jakub Stasiak - avatar