Society of Robots - Robot Forum

Software => Software => Topic started by: beachboy612 on July 13, 2012, 11:11:31 PM

Title: Beginner in C programming
Post by: beachboy612 on July 13, 2012, 11:11:31 PM
I am beginning to learn C and have purchased The C Programming Language book.  Which program should I download to practice this language and where can i find the download?
Title: Re: Beginner in C programming
Post by: ahmed eshra on July 14, 2012, 04:57:38 AM
download c-free-5 at http://www.programarts.com/cfree_en/download.htm (http://www.programarts.com/cfree_en/download.htm) and if you cannot use feel free to e-mail me [email protected] and don't worry about the word "compilers" down the page.
Title: Re: Beginner in C programming
Post by: beachboy612 on July 14, 2012, 09:13:52 AM
Thank you very much.  I am about to test out the program.  So what does compiler refer to anyway?  I see that word a lot and never know what it means.  Also, when I was looking at the source code for the $50 robot and trying to understand it,  I noticed it had function calls that I did not read about in my C programming book.  Is it because they are specific to AVR Programmers and does every programmer have its own new set of function calls?  Sorry for alll the questions.  I am completely new at this.
Title: Re: Beginner in C programming
Post by: newInRobotics on July 15, 2012, 07:45:48 AM
I am beginning to learn C and have purchased The C Programming Language book.  Which program should I download to practice this language and where can i find the download?
Why not to go with microcontrollers straight away? Programming microcontroller is a bit different than writing software for PC, as different sets of language features are used. There are very good tutorials online that helped me to learn programming AVR microcontrollers.

Also, when I was looking at the source code for the $50 robot and trying to understand it,  I noticed it had function calls that I did not read about in my C programming book.
Function calls You saw was most likely to functions defined  in header files and other c-source files written by Admin. When You what to achieve more advanced functionality and make software development faster, You have to write Your own functions so they can be reused many times later.
Title: Re: Beginner in C programming
Post by: beachboy612 on July 15, 2012, 07:40:06 PM
@newinrobotics

Thanks for the info.  sounds like exactly what I need.  do you have any links to these tutorials?  do not really understand what you mean by header files.  I have seen them in my c programming software, but i still do not understand how they differentiate from source files and other files.
Title: Re: Beginner in C programming
Post by: newInRobotics on July 26, 2012, 06:54:34 AM
Hi  :)

do you have any links to these tutorials?
Here's the link to forum page containing many links ;) http://www.societyofrobots.com/robotforum/index.php?topic=14947.msg109175#msg109175 (http://www.societyofrobots.com/robotforum/index.php?topic=14947.msg109175#msg109175)

do not really understand what you mean by header files.  I have seen them in my c programming software, but i still do not understand how they differentiate from source files and other files.
Header files are used to declare everything: variables, functions, classes, etc. I started understanding headers after doing some programming in C++ and Qt. I've followed these tutorials --> Qt4 tutorial (http://zetcode.com/gui/qt4/)
Title: Re: Beginner in C programming
Post by: greywanderer012345 on July 27, 2012, 12:26:19 PM
Microsoft has a free version of Visual C++ now.

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express)

This has very useful features. You can also program C with it.