Possible Duplicate:
How to stop C++ console application from exiting immediately?
Forgive me for my rather extreme newbie-ness in the field of C++ but here goes. :)
When I run say for example this code in a terminal:
int g;
cout << "Please enter an integer value: ";
cin >> g;
cout << "The value you entered is " << g;
...to you C++ experts out there, obviously this accepts a value from the user's input and then displays in the output. However, right after I "submit" my input and click enter, I see the output for a mere millisecond and then the terminal closes. Anyway I could stop the terminal from closing so I could actually have a chance to see the result?
I'm using Visual Studio on Windows 7.
Thanks!