English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

My favorite book for introducing an experienced programmer to C++ is Nigel Chapman's "The Late Night Guide to C++". This would probably not be a good book for someone with no programming experience at all. But if you already understand the idea of writing a program to tell a computer to perform a task, and you understand in general how the computer carries out the instructions expressed in the program, and in particular if you have successfully written a few programs in some other language, then Chapman's book can help you understand what is special about C++, and why the language is so powerful. The book is lively and witty, and has some unusual examples drawn from niche programming languages (Metafont and AWK). I appreciated this because it showed that by defining a few appropriate classes and operations, you could use C++, a mainstream, general-purpose language, to accomplish the same tasks for which people used to resort to special-purpose languages or applications.

The book isn't cheap, and it is definitely a tutorial, not a reference. By that I mean that you may read it once or twice through, but after that, if you continue as a C++ programmer, you will probably not go back to Chapman's book again and again -- you will want something else (like Stroustrup's "The C++ Programming Language", or Meyers's "Effective" books, or books by Sutter or Alexandrescu or Josuttis) as regular references. So it makes sense to borrow it from a library if you can, or if you're a student, maybe chip in with others to buy a copy you can share, or buy it used if you can find it.

But even if you have to buy it outright (as I did), I would say it's worth it. It is a well-thought-out, well-paced introduction that concentrates on the class and object mechanisms that make C++ different from C and from Java. (In particular I remember it having a really good treatment of multiple inheritance.)

On another note, I should also mention that Stanley Lippman has written two very good books: "The C++ Primer" (now in its 4th edition, I believe), and "Essential C++". The "Primer" is intended as a thorough introduction to the language, and I do mean thorough -- it's about 1200 pages long. Unlike Chapman's book, it can serve as a useful reference even after you know the language, but its sheer size and comprehensiveness may make it daunting. "Essential C++" takes a tutorial approach, and has some good examples and exercises, but is less useful as a long-term reference than the "Primer" and less fun to read than Chapman's "Late-Night Guide". At this point, personal taste (and budget) start to affect your choice, so I'll leave you with these suggestions, and recommend that you go to a bookstore and look at the books and buy the one that appeals to you most, since that's the one you're most likely to actually read and profit from.

Hope this helps.

2006-09-08 02:13:40 · answer #1 · answered by logician1989 2 · 1 0

logician should get the 10 points for this question. However, I'll also put in a quick plug for Herbert Schildt's books, especially the "Teach Yourself.." series, which is very clear and well written. I'll give the amazon link below.

2006-09-12 01:00:39 · answer #2 · answered by arbeit 4 · 0 0

c++ is a hard stuff, it's case sensitive, well about the best author book, i think you can visit www.chapters.com, good luck.

2006-09-08 07:33:59 · answer #3 · answered by NR 2 · 0 0

fedest.com, questions and answers