C++ Primer (5th Edition) and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.

Sign in to turn on 1-Click ordering.
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
Start reading C++ Primer (5th Edition) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C++ Primer (5th Edition) [Paperback]

Stanley B. Lippman , Josée Lajoie , Barbara E. Moo
5.0 out of 5 stars  See all reviews (4 customer reviews)
List Price: CDN$ 67.99
Price: CDN$ 42.83 & FREE Shipping. Details
You Save: CDN$ 25.16 (37%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 5 left in stock (more on the way).
Ships from and sold by Amazon.ca. Gift-wrap available.
Want it delivered Monday, October 27? Choose One-Day Shipping at checkout.


Amazon Price New from Used from
Kindle Edition CDN $32.19  
Paperback CDN $42.83  
Join Amazon Student in Canada

Book Description

Aug. 6 2012 0321714113 978-0321714114 5
Bestselling Programming Tutorial and Reference Completely Rewritten for the New C++11 Standard


Fully updated and recast for the newly released C++11 standard, this authoritative and comprehensive introduction to C++ will help you to learn the language fast, and to use it in modern, highly effective ways. Highlighting today’s best practices, the authors show how to use both the core language and its standard library to write efficient, readable, and powerful code.


C++ Primer, Fifth Edition, introduces the C++ standard library from the outset, drawing on its common functions and facilities to help you write useful programs without first having to master every language detail. The book’s many examples have been revised to use the new language features and demonstrate how to make the best use of them. This book is a proven tutorial for those new to C++, an authoritative discussion of core C++ concepts and techniques, and a valuable resource for experienced programmers, especially those eager to see C++11 enhancements illuminated.


Start Fast and Achieve More

  • Learn how to use the new C++11 language features and the standard library to build robust programs quickly, and get comfortable with high-level programming
  • Learn through examples that illuminate today’s best coding styles and program design techniques
  • Understand the “rationale behind the rules”: why C++11 works as it does
  • Use the extensive crossreferences to help you connect related concepts and insights
  • Benefit from up-to-date learning aids and exercises that emphasize key points, help you to avoid pitfalls, promote good practices, and reinforce what you’ve learned


Access the source code for the extended examples from informit.com/title/0321714113


C++ Primer, Fifth Edition, features an enhanced, layflat binding, which allows the book to stay open more easily when placed on a flat surface. This special binding method—notable by a small space inside the spine—also increases durability.


Frequently Bought Together

C++ Primer (5th Edition) + The C++ Programming Language (4th Edition) + The C++ Standard Library: A Tutorial and Reference (2nd Edition)
Price For All Three: CDN$ 142.35

Some of these items ship sooner than the others.

Customers Who Bought This Item Also Bought

Product Details

Product Description

About the Author

Stanley B. Lippman has retired back to the Catalina Foothills where he is working on EEEK!, a computational model of the nervous system of the House Mouse, and An Off By One Error, a speculative novel set in the Northwestern Rain Forest. During his professional career, Stanley served as Distinguished Consultant for the Jet Propulsion Laboratory, Architect for the Visual C++ development group at Microsoft, member of technical staff at Bell Laboratories, two stints in Massive Multiplayer Online Gaming, and a surprisingly long stint in Feature Animation at Disney, DreamWorks, Pixar, and PDI. Stanley will be most remembered for his many years working with Dr. Stroustrup on the implementation of cfront, the standard implementation of C++ until the ISO standard.


Josée Lajoie, now at Pixar, was a member of IBM Canada’s C/C++ compiler development team, and chaired the core language working group for the original ANSI/ISO C++ standardization committee.


Barbara E. Moo has nearly thirty years of software experience. During her fifteen years at AT&T, she worked closely with C++ inventor Bjarne Stroustrup and managed the C++ development team for several years.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

4 star
3 star
2 star
1 star
5.0 out of 5 stars
5.0 out of 5 stars
Most helpful customer reviews
4 of 4 people found the following review helpful
5.0 out of 5 stars Incredibly readable and powerful. Nov. 19 2012
Format:Paperback|Verified Purchase
On the whole this is probably the best programming book that I've read. It's intelligently written with codes to tell you it's safe to skip certain parts because they are specialized tools for certain tasks. They convey the C++ concepts extremely well and it's an effortless read.

Two issues for me that they could improve:

-The code parts are hard to follow, they keep referring to off-page code samples so I just don't bother flipping the pages. If they could use a bit more plain English or a way to print out the complete programs on a separate piece of paper it would go a long way. (They let you download the code samples afaik but a cutout inside the book would have been easier)

-No Parallelism chapter. They probably thought it was too big an issue to tackle in their book but I would have liked a small intro with a recommended book or something. After reading that book you will be able to write extremely sophisticated, highly optimized... serial code.
Was this review helpful to you?
By Victor
Format:Paperback|Verified Purchase
Very good book. I bought the book because I wanted to be sure of what I had learned in university. As an electrical engineering, C++ was the first language we were presented to. However, it was never presented too deep. Pointers and references were easy to understand, but many of the basic concepts were a bit blurry. After reading the book, I have a very good understanding on the base of C++ Programming
Was this review helpful to you?
5.0 out of 5 stars Fantastic book June 26 2014
Format:Paperback|Verified Purchase
Currently on Chapter 10 and its great! It is a bit too informative, some functions in C++ I don't even use but it gives you all the options possible. If you really want to get into C++ this is the book.
Was this review helpful to you?
5.0 out of 5 stars Amazing Book Feb. 22 2014
Format:Paperback|Verified Purchase
This book is a must-have for all people wanting to begin programming in C++. Some basic knowledge of the language is probably required, but it is definitely one of the best intermediate books you could get. Take it from me, I'm fourteen trying to become proficient in C++, with only basic programming experience (Though I have used C++ before). For me this book is very easy to understand (aside from a few concepts that take a little longer to understand).

The book starts from the very beginning, i.e. "Hello World!" As you get further into the book, you start getting a deeper understanding of the standard library, and you learn to use it to your advantage when designing programs. The book also provides notes, and tips on how to use the information you learn in the best way, thus encouraging good programming habits. Along with these features, the book is also fully-updated for the new C++11 standard, and you will quickly start to understand all of the new additions to the language in very easy-to-understand tutorials. The book allows you to put your learning to work by providing exercises for you to experiment with.

If you are trying to learn C++, then I strongly recommend you get this book, as it will really help you build a foundation in the C++ programming language, and it will be easier for you to transition into the more advanced parts of programming.
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.4 out of 5 stars  56 reviews
49 of 51 people found the following review helpful
5.0 out of 5 stars Another keeper in my shelf. It covers C++11 standards very well. Sept. 29 2012
By lazybird - Published on Amazon.com
C++ Primer, 5th ed. is a great book for an intermediate level C++ programmer. I would NOT recommend this book to a novice, but if you went through an introductory book or two and have some basic programming experience, this book will take you to the next level.

The authors introduce STL material from the beginning. So, this book more or less shares pedagogical philosophy with another excellent introductory book "Accelerated C++" by Koenig & Moo (who is a co-author of this book). IMO, this is a superior approach, compared to a more traditional, part1-C-part2-C++ type of approach.

What I like about this book, in particular, is the authors' attention to detail and their pursuit of "completeness". Not only does the book cover all the basic building blocks of the language, it also describes subtleties and nuances in the language that can easily be missed or misunderstood by showing you lots of easy-to-understand examples. In this sense, I would say that this book contains most of the materials covered in topical books such as "Effective C++: 55 ways..." by S. Meyers. Althought Meyers' book is a decent one on its own, I feel like you wouldn't really need to read Meyers' book if you go through this book patiently.

Well, what I described so far doesn't differ much from what you can find in other reviews for the previous editions. However, newly added materal on the new C++11 extension certainly justifies new edition. The authors give clear explantion of new addtions (such as auto type, decltype, list initialization, rvalue reference, move operator, lambda expression, shared/unique pointers, just to name a few). These new materials are repeatedly used throughout the book, so you will feel very comfortable with these by the time you finish the book. This C++11 extension alone, in my opinion, justifies the price of the book.

The book is in its fifth edition, and this shows in the book's clean, organic structure. Fonts and spaces are perfect for a programming book, and cross referencing is very nicely documented so that you can remind yourself of your previous reading 2 weeks ago. Examples are succint and easy to understand, although they tend to be independent snippets of codes rather than parts of a grand scheme.

All in all, this is a great intermediate level book on C++. It is the kind of book that you want to keep in your shelf as a reference. I highly recommend this book to those who want to learn C++.
36 of 37 people found the following review helpful
4.0 out of 5 stars Great book for programmers Oct. 14 2012
By Yiannis - Published on Amazon.com
The C++ programming language is big, powerful and painful to master. But it's a wonderful language, both for industrial and academic use. The "C++ Primer, 5th Edition" is exactly the same. It is a big book, with a lot of information which is not always easily presented. But it's a good book and it appeals to a lot of programmers.

The "C++ Primer, 5th Edition" is not a book for those who just started programming. It is for those people that know the basics of programming and wish to learn how to program C++ the way it's supposed to be. The language is presented in depth, along with all the new features that come with its latest ISO standard, C++11.

Object Oriented Programming principles and practice, Generic Programming, Containers, dynamic memory and advanced type support are also all there. Everything is presented in a clear way with a lot of examples and several exercises to get you started.

What I liked:

1) The summary of "Defined Terms" at the end of each chapter is a very handful guide on what was presented in the chapter and it greatly assists in both remembering what the chapter was about and as a quick reference.

2) The book builds slowly on each concept; object oriented programming and generic programming are reintroduced multiple times in different depths.

What I did not like:

1) No mention of threads, atomic instructions, memory model or anything remotely close to any of those. This was one of the biggest additions in C++, at the very least an honorary mention should have existed.

2) Template metaprogramming is only mentioned once. Yes, it is a difficult subject that few people pursue and even fewer master. But it is an integral part of C++ that will become more and more common in the future. It requires at least its own paragraph or appendix to very briefly explain what it is and where to find additional information.

3) The Boost C++ libraries have driven up to a point a lot of the C++11 features. It is a collection of high quality, experimental C++ libraries that is developed by an active community of C++ enthusiasts. Those same people participate in C++ standardization committees that defined the ISO C++11 standard and will produce the next standards. A simple reference, maybe in the same spot as template metaprogramming, would definitely make a useful addition.

Overall, I liked the book. Would I recommend it to a new programmer? No. But it is surely on the top of my list for programmers that want to succumb to the call of the C++ Programming Language.
16 of 17 people found the following review helpful
5.0 out of 5 stars Recommended reading... Oct. 1 2012
By TS - Published on Amazon.com
If you have some programming background and are trying to learn C++, are an intermediate developer, or even if you're an advanced developer - this book is highly recommended reading.

In my opinion, this book teaches C++ properly, it teaches you the building blocks and facilities of the language from the ground up so you get accustomed to strings, vectors and other important features of the C++ standard library. This is exactly what Bjorne Stroustroup, the creator of the language, suggests and I find it so much more useful than starting off by learning the C programming language first.

This book covers C++11 features in an in depth fashion. Prior to having this book, I had a hard time finding enough information about all the aspects of the new standard. I especially like the explanation on rvalue references and the new move semantics.

Parts 3 and 4 of the book were particularly useful. Part 3 delves into copy semantics, the new move semantics, and includes a great chapter on object oriented programming.

Part 4 is also a treat as it's focused on regular expressions, random numbers, formatted IO, tools for large programs such as exception handling, namespaces and more.

This is my personal C++ book recommendation, along with "The C++ Standard Library" which is also updated to include C++11 and "API Design for C++" .
6 of 6 people found the following review helpful
5.0 out of 5 stars Comprehensive Learning Aid/Reference for C++ Sept. 22 2013
By J. Mazzatenta - Published on Amazon.com
Firstly, do NOT buy this book if it's your first book on C++. You will not be able to appreciate it unless you've gone through something more basic first. This book will take you from beginner to intermediate levels. I don't believe that advanced level comes through book exercises, but through attempting non-trivial problems. I am not advanced level; I am intermediate level and I'm an entry level software engineer at this point.

This book is solidly dedicated to doing things under the OOP paradigm and doing them as efficiently as possible. The majority of the exercises are focused on figuring out why the code presented does or does not work, or reimplementing something presented previously using the new techniques you've just learned. Nearly everything from the standard libraries is addressed in this book -- it's extremely dense and not for the novice. This book definitely is partially designed for reference, because everything in it is referenced back or forward to other related topics and the table of contents and indices are comprehensive.

It's extremely well-done and from my experience thus far it's almost like this text is currently the word of god on the subject of C++. It's one of the highest rated C++ books on stackoverflow.com and pretty much anyone that I know that I can trust on C++ thinks it's a good book. I've only been through the first half of the book, and parts of the latter half. I've done all of the exercises, because they're all helpful in learning to debug C++ code. Debugging C++ can be very difficult at times -- so, I'm trying to code and debug as efficiently as possible. This book is a great resource on this subject.
6 of 6 people found the following review helpful
5.0 out of 5 stars Good Coverage of the New C++ 11 Features July 6 2013
By Aaron Killeen - Published on Amazon.com
Format:Paperback|Verified Purchase
If you're looking to learn c++ starting from scratch first start with some youtube tutorials, get to where they teach you about classes and become reasonably comfortable with the basic class operations also be comfortable with the stuff they teach before that. Once you've done that, you should be able to really appreciate a more logical and formalized explanation of all of the basic aspects of the language. I just got to part 3 and I feel like this book does a very good job filling in the gaps. But before I start a new chapter on something I didn't know, I usually consult a youtube tutorial just to get a basic idea of what the heck the thing actually does and the very basic operations, then I read the chapter for a thorough exposition. That's what I had to do for associative containers and dynamic memory, because I felt I couldn't appreciate the fine details without having first gotten my feet a little wet.

Overall an outstanding book.
Search Customer Reviews
Only search this product's reviews

Look for similar items by category