you have to make the program pause before it exits back to the operating system.
#include <stdio.h>
int main()
{
system("pause");
return 0;
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>Do you think that DevC++ is a good compiler to use?
Yes.
>Is there a free one that is better?
At your level, you wouldn't notice the differences that I would say make one compiler "better" than another. So Dev-C++ is fine unless you absolutely hate it for some reason.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Yes there are better compilers (some free but most cost lots of $$$), but Dev-C++ is probably best for beginners. Most of the other compilers have complicated IDEs (programmers GUI editors and tools) that take some time even for experienced programmers to learn. Stick with someting pretty simple for now.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
First time I've heard that www.bloodshed.net no longer exists. Makes sense since that has been a dead IDE for several years now. Forget Dev-C++ and get Code::Blocks with MinGW compiler.
>>and i cant find a help file to look up simple operators.
Dev-C++ isn't needed for that. Just learn to use google
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343