Salgat is correct. When running c++ programs in the Windows environment, the program runs fine and closes when it is complete. Adding a simple cin>> statement to a variable at the end will pause the program until you enter a value. This will allow you to see any other output from your program as long as you like.

You can also run you console program from the command line. Just put a batch file containing the line "cmd.exe" (or "command.com" if you are using Windows 95/98) in the same folder of the compiled executable. Thus you can test your program without alterations.

Dev-C++ is a great compiler. I think it uses the same assembler as DJGPP (GCC - GNU Compiler Colection).