C compilers and guides
Hello, ive been looking into learning C code (or maybe C++). Does neone no a good compiler ( for windows xp) and maybe a good guide to learn C code?
PS: ive googled around too;) ;)
[185 byte] By [
ipodlova] at [2007-11-10 13:00:59]

# 1 Re: C compilers and guides
uhm you could download DevC++ (it's for C too), I think it uses the GCC compiler.. which is very popular and good, and free.
# 2 Re: C compilers and guides
On a Macintosh, G++ is your best home and it comes default with Panther. For XP, definitely DevC++, I like it a lot.
For guides, Google is your best friend. Personally, I'd get a book.
# 3 Re: C compilers and guides
:mad: :mad: arggh im ####ed off (sorta) my (simple) code is working on Dev C++ ( altho im using C code)but when i try to run it in command prompt on windows, it somes up than disappears in less than like 1/2 a second. heres my code if it helps:
#include <windows.h>
main()
{
printf ("can you read this?\n");
return 0;
}
ne help is appreciated.
# 4 Re: C compilers and guides
Originally posted by ipodlova
:mad: :mad: arggh im ####ed off (sorta) my (simple) code is working on Dev C++ ( altho im using C code)but when i try to run it in command prompt on windows, it somes up than disappears in less than like 1/2 a second. heres my code if it helps:
#include <windows.h>
main()
{
printf ("can you read this?\n");
return 0;
}
ne help is appreciated. Put the line:
system("pause");
right before your 'return', and it will place a "Press any key" line for you.
About compilers... I use (and like) MS's VC++ 6.0... Dev C++'s 'skin' seems to be largely based on it... If you don't want to pay much, Dev C++ is probably your best bet (free), but it has some problems... Error messages give a pretty poor description of the problem compared to VC++, and it allows you to do some things that shouldn't be allowed (for example, Dev allows you to dynamically allocate arrays. While this has the potential to be helpful, this shouldn't be allowed).
# 5 Re: C compilers and guides
He's correct on that one. I remember having trouble with that when I was on Windows. Any idea why?
I'd disagree with you on that one YellowThur, for its exorbitant price, Visual C++ isn't worth it value-for-money wise. I'm still convinced that GNU has the best compilers around.
# 6 Re: C compilers and guides
Yep, it's definitely not worth the money for the small difference. I only have it because I had a huge academic discount on it. :)
# 7 Re: C compilers and guides
Visual C++ is the most full-featured and powerful compiler for Windows imho, but I have used DevC++ and it seems to do the job just fine. I also know people who use Eclipse, but i don't think that is free.
As for guides, google whenever you have a question, whenever there are confusions about my course material, a quick google search helps me find a short tutorial, or pdfs from other schools classes which can help.