DEV C++ help

This is a discussion on DEV C++ help within the C++ Programming forums, part of the General Programming Boards category; Ok i just got the Dev C++ compiler and when i execute my program is starts to bring up a ...

DEV C++ help

Ok i just got the Dev C++ compiler and when i execute my program is starts to bring up a ms-dos like window and then it disappears before i can even read anything. Im not sure if this isa problem with my compiler or if its a setting on my computer thats making this happen. If somebody could please tell me whats wrong i would really appreaciate it.

Hey i have the same compiler
the solution mentioned before may work, but i think that my solusion is the preferred one. I had the same problem, but i saw it published in a book when i was at barnes-and-nobles that you should enter a line of code that looks like this:

Code:

system ("PAUSE")

at the end of your program just before return 0. so a code would look like this