
Originally Posted by
ssharish2005
Luckly you have landed up on good compiler. Dev-C++ is a very good compiler which uses Mingw which connected to the port of GCC. I fact you compiler you program using gcc behind.
With the Dev-C++, since you are beginner its better use Dev-C++ which has a very good IDE to start with. I use Dev-C++
ssharish
Thanks. The only reason I wanted to know of different compilers was because of an issue I was having. I am not sure if this is based off my computer or the code I typed in.
But when I use
Code:
#include <stdio.h>
int main()
{
printf("Hello World\n");
return (0);
}
And I compile and run it and it closes instantly, so then I got to add
Code:
#include <stdio.h>
int main()
{
printf("Hello World\n");
getchar();
return (0);
}
I got to add that for it not to close instantly. Is that code itself or just the code? I am just following a example out of a book I got. The few compilers they suggested for use I had trouble with them.