Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
48 used & new from $36.75

Have one to sell? Sell yours here
 
   
C++ Primer (4th Edition)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

C++ Primer (4th Edition) (Paperback)

by Stanley B. Lippman (Author), Josée Lajoie (Author), Barbara E. Moo (Author)
3.8 out of 5 stars See all reviews (142 customer reviews)

List Price: $54.99
Price: $42.89 & this item ships for FREE with Super Saver Shipping. Details
You Save: $12.10 (22%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 3 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 14? Choose One-Day Shipping at checkout. Details
27 new from $40.69 21 used from $36.75
Also Available in: List Price: Our Price: Other Offers:
Paperback (3) 46 used & new from $1.81

Frequently Bought Together

C++ Primer (4th Edition) + The C++ Programming Language: Special Edition (3rd Edition) + The C++ Standard Library: A Tutorial and Reference
Price For All Three: $166.87

Show availability and shipping details


Customers Who Bought This Item Also Bought

The C++ Standard Library: A Tutorial and Reference

The C++ Standard Library: A Tutorial and Reference

by Nicolai M. Josuttis
4.8 out of 5 stars (98)  $59.99
Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) (Addison-Wesley Professional Computing Series)

Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) (Addison-Wesley Professional Computing Series)

by Scott Meyers
4.8 out of 5 stars (141)  $42.70
C++ Primer Plus (5th Edition)

C++ Primer Plus (5th Edition)

by Stephen Prata
4.7 out of 5 stars (65)  $37.79
Accelerated C++: Practical Programming by Example (C++ In-Depth Series)

Accelerated C++: Practical Programming by Example (C++ In-Depth Series)

by Andrew Koenig
4.6 out of 5 stars (84)  $38.99
C Programming Language (2nd Edition) (Prentice Hall Software)

C Programming Language (2nd Edition) (Prentice Hall Software)

by Brian W. Kernighan
4.7 out of 5 stars (270)  $43.18
Explore similar items

Editorial Reviews

Amazon.com Review
This new edition of C++ Primer, a favorite choice for a first C++ book, has been greatly improved with the latest and greatest on C++, stressing the built-in language features of the C++ Standard Library. For this new version--weighing in at a massive 1,237 pages--Stanley Lippman, a well-known C++ expert, teams up with Josée Lajoie, who has helped define the C++ international language standard. The new material is excellent for programmers who want to get the most out of new and advanced features in the language.

The authors still introduce the basics of C++, including data types and pointers, but quickly move on to stress how to get the most out of the built-in features of ISO-standard C++. Throughout this book built-in support for the C++ Standard Library, such as container classes like vectors and maps, and other standard features, such as the string class, are integrated into a tried-and- proven basic-language tutorial.

The major new features of C++ (templates, name spaces, and run-time type identification) all get their due. The result is an authoritative guide to basic and advanced C++ in a clear and readable style, with plenty of short, practical examples throughout the text. The book includes exercises--some quite challenging--for every section: a perfect choice both for self-study and the classroom. --Richard Dragan --This text refers to an out of print or unavailable edition of this title.

Review
Read the full review for this book.

During the last fifteen years, the power factor seems to have outperformed the complexity factor, marking the track for massive adoption of C++ in all sorts of serious application realms. Hundreds of books have been published covering every single aspect of the language, including its syntactic and semantic aspects, its effective adoption in small- and large-scale projects, and its most resounding features as well as its most worrying pitfalls. --Davide Marcato, Dr. Dobb's Electronic Review of Computer Books -- Dr. Dobb's Electronic Review of Computer Books --This text refers to an out of print or unavailable edition of this title.

See all Editorial Reviews


Product Details

  • Paperback: 912 pages
  • Publisher: Addison-Wesley Professional; 4 edition (February 24, 2005)
  • Language: English
  • ISBN-10: 0201721481
  • ISBN-13: 978-0201721485
  • Product Dimensions: 9.2 x 7 x 1.7 inches
  • Shipping Weight: 2.8 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars See all reviews (142 customer reviews)
  • Amazon.com Sales Rank: #70,101 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #44 in  Books > Computers & Internet > Microsoft > Development > C & C++ Windows Programming

Look Inside This Book


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(4)
(4)
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

142 Reviews
5 star:
 (65)
4 star:
 (32)
3 star:
 (13)
2 star:
 (11)
1 star:
 (21)
 
 
 
 
 
Average Customer Review
3.8 out of 5 stars (142 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
113 of 115 people found the following review helpful:
5.0 out of 5 stars 4th Edition is Much Improved, April 28, 2005
By Paul M. Dubuc (Columbus, OH USA) - See all my reviews
(REAL NAME)   
It's too bad that Amazon has listed reviews here which apply to earlier editions of the book. This 4th edition is a very different book than the 3rd or previous editions. (Any review you see here prior to February 2005, when this edition was printed, doesn't apply to this book.) The front cover of this book says that more than 450,000 programmers have learned C++ from previous editions. I wasn't one of them, though I bought and started to read 2 previous editions in the attempt to be. I already new C very well and the approach taken in those editions bogged me down in too much detail that I already knew.

This 4th edition is a tremendous improvement over the others. The material has been completely reorganized and updated and is much more effectively presented. The text is sprinkled with highlighted tips, notes, warnings, and best practices that not only helpful in learning the material but in applying it well. Each chapter is summarized at the end and has a glossary of important terms and concepts. Exercises at the end of each section make this book a good candidate for classroom use as well as individual study. They even knocked 300 pages off the length of the 3rd edition!

If you want to learn C++ thoroughly and well using just one book, this is the book to buy.
Comment Comments (2) | Permalink | Was this review helpful to you? Yes No (Report this)



 
76 of 79 people found the following review helpful:
4.0 out of 5 stars Comprehensive, well written, well presented ... but...., October 14, 2005
By Tim Naff "Tim" (Huntsville, AL USA) - See all my reviews
Let me state up-front that this is an indispensable book for me, and, as a reference, or as a source for expanding a basic C++ capability, it's easily worth 5 stars, not 4. In fact, as an intermediate-level C++ user, this is the most indispensable book that I have. I have 15 C++ books on my shelf, and this one (the fourth edition) is the most comprehensive, even surpassing Stroustrup's tome in most areas. (Stroustrup's influence on Primer is pretty obvious in spots.) The book's depth and its style of presentation, however, will mean that it's not the best primer for newcomers, and that's why I only gave it a 4-star rating. Look at the painting metaphor expressed on the front cover of the book. This book is more than a primer: it's a full pallet of colors, and as such is more than a beginner "painter" will be able to put to use quickly. I need to clarify what I'm saying here.

You might ask how a book can be the most comprehensive available without being longer in page count. The answer comes down to style. This book rarely expends space on full-length, executable code examples. The treatment of nine out of ten subjects offers only snippets of code - not complete executable examples. Many books offer examples that take up multiple pages for the code and multiple pages for the line-by-line explanations of the code. This difference in presentation is the single biggest reason why C++ Primer can offer so much more thorough coverage of C++ language features in fewer than 900 pages. The downside is, if you intend to learn C++, you absolutely must experiment with working code - there is no other way. The fact that this book does not offer much complete working code means that you will have to spend more time getting yourself set up to experiment. This will be especially true if you are a beginner, just because it will be harder to get things working.

The conciseness of code examples is matched by conciseness of explanations. In this regard, however, I have found no downside: the vast majority of explanations are extremely clear to the point of elegance. I've found only a few flaws in clarity, which are probably left over from earlier editions.

The tremendous depth of this book will be another weakness for newcomers to C++ who need to get started quickly. In my opinion, you just can't get started quickly when every treatment of every subject has to cover all of the ins and outs of that subject. There are too many subjects and too many ins and outs. If you try to go straight through the book, you'd better be prepared to work lots and lots of problems along the way: it will take so long to get through it that if you don't practice as you go, you may find yourself forgetting almost as fast as you're learning.

The other side of the coin is this: if you really do take this book, work through it from start to finish, and really master the material, you'll have a fantastic knowledge of C++. I seriously doubt that three good college courses in C++ - assuming no prior programming experience - would teach as much. The fact that you'll have to develop your own working code to demonstrate each feature will, like the depth of treatment, make you a better programmer, even though it seriously slows you down in the process.

You can conclude, then that if you are a newcomer to C++, and especially if you are inexperienced with programming in general, this book will be a long, hard climb. I'd be willing to bet that fewer than 5 percent of purchasers of this book start at the beginning and work straight through. Even so, if you are a newcomer taking a C++ programming class or just using another book to get started, it will be valuable for parallel reading and will come in very handy when you want to do a deep dive. Finally, don't forget that if you have a basic grounding in C++ fundamentals and you want to grow from there, this is a dynamite, five-star opportunity.

I feel like I have to elaborate here a bit as well. Time after time after time, when I've wanted a better understanding of a really fine point on the language, I've turned to this book and been rewarded for doing so. Every single subject is explained fully and, in most cases, eloquently. You can learn to do a lot quickly in C++ using other resources, but C++ offers the ability to fine tune and get close to the hardware. This book will make you better understand what the compiler is doing. The authors took the time to make extensive use of cross-references, which are invaluable in a subject this complex. The explanations, bolstered by cross-references, tend to leave me more than satisfied that I've gotten a grip. When I finish a section and have some example code executing, I feel like I have a complete understanding: I rarely find myself asking, "... but what about ...." I could go on and on, but you get the message. (One reason I'm taking the time to write this is that I feel indebted to the authors!)

The book builds up a consistent set of semantics - more so than any other book I've read. One example is their thorough explanation and consistent use of the terms "declare" and "define." Another is example is "argument" and "parameter list." Unambiguous semantics are essential to unambiguous communication, and, as you know, programming is one of the most unforgiving disciplines there is; ambiguity is intolerable. This attention to detail pervades the entire book, beyond just semantics.

Also, like with Stroustrup's book, I don't have to worry about whether the authors got it right or wrong or only half-right. This is an authoritative work: these guys know their subject as well as they know how to communicate it.

I especially like the dark page summaries and glossaries that act as chapter boundaries. I like the highlighted notes, tips, "bewares," and best practices. I like the blocks of text that address "cautions." These features are value-multipliers for me.

I also appreciate that there is absolutely no subconscious assumption that you already know C. That assumption seems to creep into so many other books, even though the authors deny it.

I agree with other reviewers that this edition is a huge improvement over previous editions. (I have the second edition beside me as I write this.) Frankly, I don't like the earlier editions. My guess is that the new authors, who came on board for this edition, should get a lot of credit. (I know an absolutely brilliant guy who has done some real innovation with C++. For example, he wrote a C++ library that allows you to write C++ in Python style, while getting C++ performance. This same guy was so intimidated by an earlier edition of Primer that he put off trying to learn C++ for several years! I'm still trying to convince him to get the fourth edition!)

So the fourth edition is a vast improvement, but, assuming that we don't try to make it all things to all readers and stick with the objective of compact comprehensiveness, how could we improve it further? The code examples could be simpler. I think Schildt is the master of communicating through code examples, just because his examples do the best job of isolating on the subject at hand. C++ is an extremely broad language, and when I read about a concept, I don't want to be expected to know everything, especially code examples, that preceded it in the book. Primer could do a better job - at least for me - in that respect. Examples should not be codependent: each example should lean only on the preceding material as much as is necessary to get the point across. All experts agree that the best code is code that is easily readable. In a tutorial, the meaning of the code examples should jump off the page. Primer is not bad in this regard, but it could be better. (Some will argue that leaning on previous material reinforces the learning of the material, and they will be right. In my opinion, however, that argument applies mostly to course textbooks where the learning of diverse features can be forced into a tightly channeled sequence.) I often use Schildt and Holtzner for reference when I need a quick answer. (As an aside, Stroustrup's book is the worst, for me, in terms of code examples being unnecessarily complex and codependent, even though I consider his book second only to this one as an indispensable reference.)

Bottom line: C++ Primer is an amazing accomplishment. The authors have done the best job to date of sorting out and presenting in lucid fashion a vast and complex network of features. I speak from experience as a technical writer as well as a student of C++. I feel guilty for assigning only four stars, but I'm concerned about the newbie who sees a 4-star rating on a "primer," and rushes to spend his limited budget on this book as a sole reference. C++ Primer is a very wise investment if you are really serious about C++, whether newbie or expert, but most newbies will also need a primary resource that is more beginner-oriented. Other books I recommend, in addition to the ones mentioned previously, include Prata (a good tutorial and a good resource for complete code examples, although there is significant codependence of examples); Lafore; Josuttis' classic STL book (definitely not for beginners); Schildt's STL book, also for its code examples; Keough and Gray (for quick reference only); and Safir and Brown (which does assume that you know C).
Comment Comments (5) | Permalink | Was this review helpful to you? Yes No (Report this)



 
30 of 32 people found the following review helpful:
3.0 out of 5 stars covers newest features, but numerous errors & poor examples, October 13, 1999
By Louis Lu (Atlanta, GA) - See all my reviews
This book covers the newest and advanced features in standard C++. It has good chapters on function and class templates, overload resolution, generic algorithms and multiple/virtual inheritance. But the long text search program used to illustrate object-oriented programming is a total disaster: it forces the reader into the mundane nusances of the example and obscures the real objective, i.e. teaching objects, their inheritance and use. To make things even more obscure, the entire book is full of errors, some at critical places, and especially in the Appendix that covers the generic algorithms. I did not count them but they are not too far from 100. Another aspect that I did not like is the lack of comments on the program code. I read the book cover to cover 3 times and believe me I did waste weeks on those obscure code lines and did figure out over 99% of them. Sure,ommitting comments is a sure way to make the code appear deep and awesome. But if the author respects the reader's time and really cares more about teaching the reader than about showing his/her knowledge, he/she should include a generous amount of comment. My recommendation is: Buy it if you are determined to learn the advanced features of C++ and are sure you have the time and patience to struggle with the obscuring examples and the numerous misleading errors.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

4.0 out of 5 stars Prime me Up!
C++ Primer - Fourth Edition has a really effective way of teaching you the C++ programming language-full detail of what every bit of code does. Read more
Published 1 month ago by J. Martin

5.0 out of 5 stars Advanced C++ Primer
In my opinion, this book is the best C++ primer available. It is very technical and intense introduction to C++ fundamentals. Read more
Published 1 month ago by some_quant

4.0 out of 5 stars A very good primer for C++
I think an introduction book is not only good for the beginners. It is good for the experience to pick up from time to time as well. Read more
Published 1 month ago by Yuanchyuan Sheu

4.0 out of 5 stars Great C++ book only if ...
I would like to say this is a great C++ book only for those who:

1. want to write serious C++ code, instead of "Hello World";
and 2. Read more
Published 2 months ago by C. Jiakai

3.0 out of 5 stars Problem and no response from the author
On page 471 in gray note the authors say this:
"When a const static data member is initialized in the class body, the data member must still be defined outside the class... Read more
Published 4 months ago by Satish P. Singhal

2.0 out of 5 stars Not for beginners
This is a not a PRIMER for BEGINNERS.
In three chapters the author skims over the basics, providing VERY LITTLE basic information and few examples. Read more
Published 7 months ago by Kenneth R. Nestle

5.0 out of 5 stars Finally A Book Worth Buying!
*Sigh* it seems in my Quest to learn c++ i started everywhere but the right place.

I've read The Following:
1) C++ for Dummies "Horrible Book DO NOT BUY! Read more
Published 8 months ago by Lykos

5.0 out of 5 stars Excellent book for learning C++
Although the pace may not be easy for someone completely new to programming, this an exellent book for learning the C++ language. Read more
Published 10 months ago by James M. Scott

5.0 out of 5 stars Best C++ book in my personal collection
In the last year i had two computer science exams about C++ programming.
I had never seriously studied programming before, so i was surprised with almost infinite... Read more
Published 12 months ago by Alberto Moriconi

5.0 out of 5 stars 4th edition more pedagogic than the 3rd edition
First, I own the 2nd, 3rd and 4th editions of this book. I originally learned C++ from the 2nd edition in the early 90's (it's out of date). Read more
Published 15 months ago by M. Rumore

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
  Discussion Replies Latest Post
Textbooks for Kindle DX? 34 11 hours ago
C# or Java? 32 5 days ago
Does anyone use Discovering Geometry: An Investigative Approach? 3 12 days ago
   


Product Information from the Amapedia Community

Beta (What's this?)

Listmania!

Create a Listmania! list

So You'd Like to...


Look for Similar Items by Category


Cut Wood Down to Size

Cut Wood Down to Size

Split wood with ease using a log splitter from the Outdoor Power & Lawn Equipment Store.

Shop all log splitters

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

eBubbles: Free Shipping

Fizzy Baker Cupcake Trio Bath Bomb Gift Box
Get free shipping with eBubbles orders of $49 or more. From Fizzy Baker cupcakes to popular Bath Ice Cream Fizzies, eBubbles has you sudz'd up from head to toe.

Shop eBubbles now

 
Shop for Shop-Vac Products
Shop-Vac Vacuum Cleaners and AccessoriesShop-Vac offers the most complete line of vacuum cleaners and accessories for consumer, industrial, and commercial use.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates