Re: [SLUG] Wanting to learn C - book suggestions?

From: Paul M Foster (paulf@quillandmouse.com)
Date: Wed Mar 09 2005 - 23:09:21 EST


On Wed, Mar 09, 2005 at 09:10:40PM -0500, Christopher Hotchkiss wrote:

> > I have been wanting to learn a programming language for some time now, I
> > have been looking at C / C++ but I don't really know where to start. Can
> > anyone here recommend a few books to help me get started? I'm good with
> > learning from examples and other "hands on" methods, like general books and
> > HOWTOs.
> >
> > I would want to code for Linux and *BSD/OS X (I have Xcode on the Mac, I
> > have been playing around with it but I still need way more help).
> >
> > Any info would be great, thanks everyone =]
>
> My recommended books for C/C++:
> The C Programming Language by Kernighan and Ritchie

If you already know some other programming language, the above is the
best book there is to learn C from. These guys wrote the language, and I
learned C from this book alone after learning BASIC and Pascal.

Of course, if you don't already know some other language, I don't know
what book to recommend. Helpful, aren't I? ;-}

<snip>

> Overall the best way to become a better programmer is by doing it. So
> find a project to help on or make one up yourself.

Through all the languages I learned this is the best advice of all.
Figure out something trivial and use only the parts of the language you
need to do that thing. Then find something less trivial and try some
more difficult project. I learned BASIC by creating a program to give
the ultimate amount you'd pay on a loan, given a certain interest rate,
principal, and amount of time. For Pascal, I wrote a program to play
blackjack (my roommate at the time went to Vegas once or twice a year to
play blackjack at the casinos), and a checkbook program (very
primitive).

Paul

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:27:26 EDT