C/c compiler
Expert: Prince M. Premnath - 2/26/2007
Question
Hi,
Thank you so much for your help with finding a c compiler for me. I used the Turbo C to compile some programs that I found form the internet (
http://www.c.happycodings.com/Games_and_Graphics/index.html) and Turbo C was unable to compile these codes. It always finds many errors with the codes. Is it possible that Turbo C (being an old program) uses common C whereas these codes are written in ANSI C. What other reasons could cause that problem?
Thanks a lot.
Eric
-------------------------------------------
The text above is a follow-up to ...
-----Question-----
Hi,
How are you?
I'm only beginning to learn programming in C. I was wondering if you could suggest a free C compiler that could be downloaded from the internet. I don't know which one to prefer. I have two computers: one is running Win98se, the other one is WinXP. Thank you in advance for your advice.
Eric
-----Answer-----
Dear Eric!
Welcome to C Programming world , as a beginner i 'd like to recommend you the Turbo C compiler ( with IDE ) enables you to develop and run programs in a same window!
Turbo C Provides a good platform for learning , its the simplest C Compiler of choice
Here is the link for the compiler
http://www.pitt.edu/~stephenp/misc/downloadTC.html
Its a ZIP file , Run the self extractor and start your programming today !
All the best !
Thanks and regards !
Prince M. Premnath.
Answerdear Eric !
I saw that programs !
Of course most of the programs compatible with the compiler what you just using now !
The special thing with that graphics programs is it uses a special graphics driver called EGAVGA.BGI ( .BGI stands for Borland Graphics Interface ) It provides an interface between the VGA graphics and your programs , so that driver should be initialized before using any graphics functions !
You might note a statement initgraph() in all programs , there the 3rd arguments actually refers the path name of the driver where actually present in the disk !
If the path name is wrong then your graphics system wont get initialize and most probably result in error !
Th solution is to correct the path name and recompile the program !
If the problem still persist then kindly send me the error message displayed ! im sure ill give you the accurate solution !
Thanks and regards!
Prince M. Premnath