Any program I attempt to run without debugging, will run, the window pops up, and then closes itself immediately. Can anyone tell me why this happens? Or at least how I can remedy this problem?
Mind you I am using microsoft visual studio 2010
Well it would help if you posted the source code (Use code tags!) but i think that its because it has nothing to pause it so it just runs then immediately closes
Programs that use cout, cin, ... are meant to be run from a terminal. When you run them from outside of one, a terminal is created for the program and discarded when it's finished.
A Solution: write a batch/shell file that looks something like this: