-->
Showing posts with label WAP to clear the screen using system(cls). Show all posts
Showing posts with label WAP to clear the screen using system(cls). Show all posts

WAP to clear the screen using system(cls)

//program to clear the screen using system("cls")
#include <iostream>//header file
#include<stdlib.h>//header file to work with system("cls")
using namespace std;//to handle all standard characters/functions,reserved words  used in program. we do not use in turboc++ compiler

int main()          //main function
{
    system("cls");//clears the screen
    cout << "Hello world!" << endl;//prints the literal
    cout<<"second line "<<endl;//prints the literal
    return 0;               //returns 0
}