When your program finished the console closes automaticly. Insert a cin.get() (#inlcude <iostream> at the end or system("PAUSE"); (only windows, #include <cstdlib>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
By the way: Read the FAQ and search the forum next time.
Oh, yes: Dev-cpp isn't a compiler! It's an IDE based on the mingw distribution of the gcc compiler suite..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when i execute the program the dos appears and disappears
please suggest the solution
When your program finished the console closes automaticly. Insert a cin.get() (#inlcude <iostream> at the end or system("PAUSE"); (only windows, #include <cstdlib>
By the way: Read the FAQ and search the forum next time.
Oh, yes: Dev-cpp isn't a compiler! It's an IDE based on the mingw distribution of the gcc compiler suite..