How do I pauses the screen after my program is done?
I think it's called " system("PAUSE") " it makes a line in the screen that says " press any key to continue".
Thanx
How do I pauses the screen after my program is done?
I think it's called " system("PAUSE") " it makes a line in the screen that says " press any key to continue".
Thanx
Here it is:
Code:#include <cstdlib> using namespace std; int main() { system("pause"); // Also works with 'PAUSE'. return 0; }
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
a better way to do it (system calls are slow and unoptomised)
is include conio.h
and use
cout<<"press any key to proceed";
int wait = getch(); //pauses until keypress
//rest of your code
Monday - what a way to spend a seventh of your life