okay,ihavethedev-c++compiler,andiwanttoknowhowicompilethedamnthing!Idon'tthinkimdoingitcorrectly,becausewheniruntheprogram,thewimdowflashesforasplitsecondandthendisappears.wtfiswrong?
Printable View
okay,ihavethedev-c++compiler,andiwanttoknowhowicompilethedamnthing!Idon'tthinkimdoingitcorrectly,becausewheniruntheprogram,thewimdowflashesforasplitsecondandthendisappears.wtfiswrong?
Try putting in one or two
cin.get();
in the end of the code.
Or
Code:#include <stdlib.h>
...
system("pause")
For Dev-C++, you can use "getchar()" before "return 0" to make it stay there until a key is pressed.