-
Just a newbie question
I'm writing a simple, very basic, program of text inputs and outputs and I have a message displaying at the very end of my program, but the window closes so fast that you are unable to read it. Is there a command that rests for a certain time or will wait for the user to hit enter or something??
-Thanks, in advance -
-
#include <stdlib>
system("PAUSE");
-
We need a bigger sign on the door
FAQ
-
sorry didn't get that far in the FAQ
-
the FAQ isn't exactly a tutorial... it's called "frequently asked questions" for a reason... if you have a question as a beginner, it's most likely been asked before... somewhat frequently. therefore you might check the frequently asked questions (FAQ) section to see if it's been answered before.
with that out of the way, I perfer something like this:
Code:
#include<conio.h>
...
getch();
return 0;
//or
#include<iostream>
...
cin.getline();
return 0;
>>#include <stdlib>
shouldn't that be <cstdlib> ?