I find that most Windows IDEs (including Visual Studio 2010) will close the console window immediately after the program ends if you don't run the program through the debugger. There should be some sort of option that goes along the lines of "Start with Debugging" or something along those lines.
When you actually run your program through the console, you won't have to worry about it closing down on you. :)