How to clear screen

0 Sai Ram · September 21, 2015
//i have created the following program and want to clear the previous screen , BUT HOW IS IT DONE???

#include
#include

using namespace std;

void showdata()
{
    cout

Post a Reply

Replies

Oldest  Newest  Rating
0 Shaurya Bhatnagar · September 21, 2015
use getch(); at the end and clrscr(); after both includes
0 Kanniyappan Rajendran · September 22, 2015
#include <conio.h>
...
clrscr();   //at begining this will clear the screen at begining and also you can use the same at any time in the code to refresh the screen
0 Jon Z. · September 22, 2015
on windows:
system("cls");


on unix:
system("clear");
  • 1

C++

107,232 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator