How to pause a program in C++

Hi,

I want to pause a program in C++ until I press a key to continue. Could anyone please help me how to do that.

Thank you so much
closed account (S6k9GNh0)
Though I do disagree in giving answers away like this:

getchar();

There you go.
which platform you are developing?
simply add the line
system("PAUSE");
There's also this pretty lengthy thread on the subject: http://www.cplusplus.com/forum/beginner/1988/
I thank all of you who have posted their advices
@kaidranzer
Eat bugs and die.
closed account (L3ApX9L8)
I suggest you read the thread pointed by helios...
quite informative discussion...
Topic archived. No new replies allowed.