#96235 - Dwedit - Tue Aug 01, 2006 11:55 pm
If dev c++ isn't working for something that simple, you're doing it wrong. Make sure you downloaded the full version of dev c++ which includes the gcc compiler, not just the IDE.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
#96236 - Optihut - Tue Aug 01, 2006 11:56 pm
Why doesn't devc++ work for you? The program compiles just fine for me. However, since there is no pause in it, you can't really see the output, because the compiler window closes immediately after the program ends.
If you don't want to put in a pause, run the compiled exe file in a dos box and you can see the output as well.
#96246 - Dwedit - Wed Aug 02, 2006 12:57 am
Add to the top:
#include <cstdlib>
and before return 0;
system("pause");
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."