what is the function of system(pause)?
what mean by clear screen?
They are exactly what they say...
system("PAUSE"); causes the program to pause until you press a key.
system ("CLS"); clears the screen of everything. You have a clear screen...
if I clear the screen then I want to open new screen,how should it been done?
It depends on what you want to do...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
cout << "Hello world! I'm trying to clear my screen" << endl;
cout << "Hello world! I'm trying to clear my screen" << endl;
cout << "Hello world! I'm trying to clear my screen" << endl;
cout << "Hello world! I'm trying to clear my screen" << endl;
cout << "Hello world! I'm trying to clear my screen" << endl;
cout << "Hello world! I'm trying to clear my screen" << endl;
cout << "Hello world! I'm trying to clear my screen" << endl;
system ("PAUSE");
system ("CLS");
cout << "Now I have a nice clear screen... Oh joy!!" << endl;
return 0;
}
|
What exactly are you trying to do?
Last edited on