Possible Duplicate:
How to keep the console window open in visual c++?
I have a program that runs on my home machine, but on another machine it quits instantly when being executed. The console window opens and closes so fast that I can't read the output. How can I make sure this output stays visible, so I can read what it's trying to tell me?