PDA

View Full Version : Programming



IamReck
March 16th, 2008, 04:55 PM
Is there a very simple tutorial out there for people looking to start programing in C?

I am looking for one that will walk me through everything, from getting my first Hello World application going to helping me set up my Ubuntu system with the proper libraries and compiler...

Thanks!

Hendrixski
March 16th, 2008, 05:02 PM
Here's one that google gave turned up

http://www.engin.umd.umich.edu/CIS/course.des/cis400/c/c.html

To get started on ubuntu just go to Synaptic and select "build-essential" then click install. That installs a compiler for you and other tools you need to get programming. Then just find the editor (pick anything from from vim and Emacs to Eclipse). And... and don't be affriad to ask questions online (here, or on IRC) but don't forget to google them first; :-)

Good luck

iansane
March 16th, 2008, 05:06 PM
cplus.com is a great resource for c++ . The tutorial below starts out with a "hello world"


http://www.cplusplus.com/doc/tutorial/

I am just starting a c++ class so I don't have any knowlege right now but that is the website we are using for reference in the class and the book we are using is "beginning c++ for games" to make it interesting. I tried finding stuff on just plain C programming a while back and all I could find was C++ and Visual C++/# for Visual Studios. Some of those expect previous experience with C but where to get that, I don't know. We are using the Dev C++ compiler which works on windows and linux so hopefully it will be a good learning experience.

tseliot
March 16th, 2008, 05:09 PM
Moved to the Programming Talk section.

Have a look at the sticky:
http://ubuntuforums.org/showthread.php?t=606009

iansane
March 16th, 2008, 05:10 PM
Here's one that google gave turned up

http://www.engin.umd.umich.edu/CIS/course.des/cis400/c/c.html

To get started on ubuntu just go to Synaptic and select "build-essential" then click install. That installs a compiler for you and other tools you need to get programming. Then just find the editor (pick anything from from vim and Emacs to Eclipse). And... and don't be affriad to ask questions online (here, or on IRC) but don't forget to google them first; :-)

Good luck

Good link, don't know why I had such a hard time finding stuff about plain C.

Jessehk
March 16th, 2008, 05:13 PM
The stanard is "The C Programming Language" by K & R, but it assumes previous knowledge of programming. It should definitely be the second book you read.

As for the first book, I've heard good things about this (http://www.amazon.com/Primer-Plus-5th-Stephen-Prata/dp/0672326965/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1205683904&sr=8-1) one. :)

|{urse
March 17th, 2008, 02:35 AM
just wanted to cast my 2 cents in. www.cplusplus.com has the best tutorial online for c++ and (id didnt read your posts but i saw some perl mentioned) Larry Wall rules but without C he would have made nothing.:shock: perl was so much easier to learn after i learned C.

IamReck
March 17th, 2008, 02:02 PM
I had a specific reason for looking for guides to C programming, and thanks to the advice given to me on this forum, and not the argument about other languages... I was able to find a good guide I will be using.

Thanks to all who contributed, and those who advised me to seek help on the IRC, I hadn't thought of that.

Can someone please Close this thread?

ruy_lopez
March 17th, 2008, 03:45 PM
I started programming with C. I haven't learned much of any other language, just enough to get by. I tend to use C for everything unless it absolutely doesn't make sense. There are plenty of good libraries which make life easier.

I'm one of those "worse" programmers who didn't learn a high-level language.

I recommend K&R book. Here's a tutorial by one of its authors (http://www.lysator.liu.se/c/bwk-tutor.html).

bapoumba
March 17th, 2008, 05:01 PM
Off topic gone there: http://ubuntuforums.org/showthread.php?t=727035