This is perfectly normal behavior : as the program terminates, the console window is closed. Open a console window yourself ("dos prompt"), then run your program in there.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]