For computers that have Windows installed, you can use System("CLS"); to clear the screen. This statement calls on the operating system to find the "cls" command and execute it. However, this statement makes your program less portable as it makes it dependent on the Windows OS in order to clear the screen.
It must be done by a platform-dependent function, it's "clrscr" from conio.h in TurboC
printf();
cin.clear();
Clearing screen in DEV C++ compiler :#includeint main(){system("cls");}OR: Permanent solution :-Paste the following text in "C:\Dev-Cpp\include\conio.h" of your system#include#includevoid clrscr(){system("cls");}Then you can use clrscr() as a normal built in function under !!!!!!!!!!!
clear() is an inbuilt function defined in c++ defined in conio.h. It is used for clearing the console. The systax is:clear();
use system("clear"); eg: main() { system("clear"); }
It has to be some color and blue is nice.
by using "clrscr" command at starting of the program
You can use system("cls") function with stdlib.h
printf ("x")
I want my C++ program become interesting How can I change the color of background and color of font even size of font......... I will always use system("cls") to clear there screen..... so I want do C++ DOS into something we call presentation like powerpoint Haha........ Any tutorial? That all Thank you
The del character, #255, has no symbol. It is a non-printing character, so you cannot display it on the screen.