can't see the output of the printf command

April 26, 2011 at 11:17:27
Specs: Windows XP
sorry wrong forum!

I use dev c++ and when i write this simple program

int c;

and press the compile and run button - it shows the result in a blink and close the window so i can't really see what's the output

when i open it in a cmd i can see the result. why is the play and execute button makes the result blink for a sec and disapear?


See More: cant see the output of the printf command

Report •

May 6, 2011 at 11:41:11
In C++ we want to use header file iostream.h instead of stdio.h
Try it Buddy

Report •

May 6, 2011 at 12:16:03
Well yeah, but the C function printf() isn't defined in iostream, or the depreciated iostream.h.

kyou8: If you're going to run your console application from Dev-C++, I suggest you add the following line before your main() returns:


How To Ask Questions The Smart Way

Report •

Related Solutions

Ask Question