tags:

views:

300

answers:

2

I know that this book is for C++ Primer 3rd Edition (Stanley Lippmann) but can this be used for C++ Primer 4th Edition. There is no C++ Primer answer book for the 4th Edition. Still comtemplating if i should get it.

A: 

I think you should get the 3rd Edition. It's nice to have the answer book. From what I understand the two versions do not differ significantly.

Mike
Apart from the fact that the 2 editions are very different, the OP is not asking whether he should buy the 3rd edition of the book, but whether he should buy the Answer book that was written to complement the 3rd edition of the book.
Alexandros Gezerlis
+3  A: 

There exists an unauthorized collection of

Solutions to the 4th edition of the "C++ Primer"

Of course, this is a wiki, which means that the solutions are not as authoritative as the ones in the book by Tondo. However, they do correspond to the latest (i.e. the 4th) edition, while the book by Tondo is for the 3rd edition.

What I would recommend to you is to work through the book yourself (most of the exercises just check to see if you were paying attention, and are not that difficult) and whenever you are uncertain you can check the above link. Just make sure to change any errors you may find.

If you buy the book by Tondo you would be wasting precious time to find which exercise in the 3rd edition corresponds to the exercise you're interested in from the 4th edition (and the overlap is far from complete, of course).


More generally: The 4th edition of the book (for which Barbara E. Moo, of "Accelerated C++" fame, did a complete revision) is considerably better than the 3rd edition. It is more to the point (over 300 pages shorter) and also clearly more modern. The 3rd edition of the "C++ Primer" came out in 1998, at more or less the same time as the C++ Standard. However, implementations of the Standard Library were still maturing, which is why the 3rd edition contained a lot of stuff about e.g. arrays and less about vectors. In a nutshell, the 4th edition spends less time on "C" and more time on "++". But it seems that you know all this, since you've already bought the 4th edition.

Alexandros Gezerlis
Knew that Moo was new for the 4th edition... didn't realize that it was her influence that made it the book that it is.
Dan
You might be interested in this article, http://www.drdobbs.com/architecture-and-design/184401918
Alexandros Gezerlis