Ok so yesterday i had posted that when i go to run evena simple program in visual studio 2008 using the f5 button the cmd box like flashes on the screen then disappears! I tried to put that piece of code somebody left on the question yesterday into thwe end of int Main() and it did nothing!
Seems to me it's a compiler flaw, but I'm sure there's a decent explanation behind it.
It is not a compiler flaw, it is doing exactly what it should be doing. If you run the program from outside the IDE by double clicking its icon it will do the same thing.
The difference between F5 and Ctrl+F5 is that the first executes your program in "debug mode" while the second executes it in "release mode".
Downey still has not shown us his code. If something is causing it to fail immediately then no amount of "pause"ing will help.
Suggestion: just open a terminal prompt, "cd" to the executable's directory, and run it from there.
C:\Users\Downey> cd "Documents\Visual Studio 2012\Projects\ConsoleApplication1\Release"
C:\Users\Downey\Documents\Visual Studio 2012\Projects\ConsoleApplication1\Release> ConsoleApplication1.exe
...
The difference between F5 and Ctrl+F5 is that the first executes your program in "debug mode" while the second executes it in "release mode".
<technicality>
They both run your program in whatever build configuration you have selected. The difference is that F5 attaches the VS debugger whereas Ctrl+F5 doesn't.
</technicality>