Good C book

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

Post Reply
Gedi

Good C book

Post by Gedi » Mon Dec 06, 2004 7:00 pm

I'm a C++ and perl programmer and need to make the switch into C for ROS development.
Can anyone recommend any good C books?

ConMan
Posts: 12
Joined: Sun Dec 05, 2004 7:37 am

Post by ConMan » Mon Dec 06, 2004 9:31 pm

Isn't C just C++ without objects (without oop)?

Gedi

Post by Gedi » Mon Dec 06, 2004 9:55 pm

Not really.
C++ is based on C but does things differently, esspecially when you've grown used to using the flexibility of C++'s OO implementations.

It would be nice to read a good book on C to learn how everything works without objects.

DocPheniX
Posts: 29
Joined: Mon Dec 06, 2004 12:44 pm

Post by DocPheniX » Tue Dec 07, 2004 4:33 pm

http://techbooksforfree.com/ <<< all kinds of free programing e-books.
now if i could get some motivation to read some of them i would help.

:twisted:

lightstruk
Posts: 1
Joined: Tue Dec 07, 2004 5:19 pm

The best C book

Post by lightstruk » Tue Dec 07, 2004 5:33 pm

There's a decent tutorial on plain C here:
http://www.lysator.liu.se/c/bwk-tutor.html

It's written by Brian W. Kernighan, one of the authors of the canonical book on C, called "The C Programming Language."
http://en.wikipedia.org/wiki/The_C_Programming_Language

A good historical primer on C can also be found in the wikipedia:
http://en.wikipedia.org/wiki/C_programming

If you're new to C but experienced in C++, you'll want to pay special attention to C memory management using malloc() and free(), to C structs, and to the typedef keyword. (In particular, one can write quasi-OO code using the "typedef struct" convention.)

Gedi

Post by Gedi » Wed Dec 08, 2004 11:52 am

Thanks. :)

I ordered 'The C Programming Lanuage', have just started going through it and am fairly confident this will be the only C book I'll need. It's excellent.

While I wouldn't recommend it to anyone new to programming, if your a confident coder in other lanuages, esspecially Java or C++ this book is perfect.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Baidu [Spider], DotBot [Crawler], Exabot [Bot] and 3 guests