Buy new:
-53% $28.35$28.35
FREE delivery June 18 - 25
Ships from: Kuleli Books Sold by: Kuleli Books
Save with Used - Good
$13.60$13.60
Ships from: Amazon Sold by: eCampus_
Return this item for free
We offer easy, convenient returns with at least one free return option: no shipping charges. All returns must comply with our returns policy.
Learn more about free returns.- Go to your orders and start the return
- Select your preferred free shipping option
- Drop off and leave!
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
C++ Primer 4th Edition
Purchase options and add-ons
"C++ Primer is well known as one of the best books for learning C++ and is useful for C++ programmers of all skill levels. This Fourth Edition not only keeps this tradition alive, it actually improves on it."
--Steve Vinoski, Chief Engineer, Product Innovation, IONA Technologies
"The Primer really brings this large and complex language down to size."
--Justin Shaw, Senior Member of Technical Staff, Electronic Programs Division, The Aerospace Corporation
"It not only gets novices up and running early, but gets them to do so using good programming practices."
--Nevin ":-)" Liber, Senior Principal Engineer (C++ developer since 1988)
This popular tutorial introduction to standard C++ has been completely updated, reorganized, and rewritten to help programmers learn the language faster and use it in a more modern, effective way.
Just as C++ has evolved since the last edition, so has the authors' approach to teaching it. They now introduce the C++ standard library from the beginning, giving readers the means to write useful programs without first having to master every language detail. Highlighting today's best practices, they show how to write programs that are safe, can be built quickly, and yet offer outstanding performance. Examples that take advantage of the library, and explain the features of C++, also show how to make the best use of the language. As in its previous editions, the book's authoritative discussion of fundamental C++ concepts and techniques makes it a valuable resource even for more experienced programmers.
Program Faster and More Effectively with This Rewritten Classic- Restructured for quicker learning, using the C++ standard library
- Updated to teach the most current programming styles and program design techniques
- Filled with new learning aids that emphasize important points, warn about common pitfalls, suggest good programming practices, and provide general usage tips
- Complete with exercises that reinforce skills learned
- Authoritative and comprehensive in its coverage
The source code for the book's extended examples is available on the Web at the address below.
www.awprofessional.com/cpp_primer- ISBN-100201721481
- ISBN-13978-0201721485
- Edition4th
- PublisherAddison-Wesley Professional
- Publication dateJanuary 1, 2005
- LanguageEnglish
- Dimensions6.75 x 1.5 x 9 inches
- Print length885 pages
Customers who viewed this item also viewed
Editorial Reviews
From the Back Cover
"C++ Primer is well known as one of the best books for learning C++ and is useful for C++ programmers of all skill levels. This Fourth Edition not only keeps this tradition alive, it actually improves on it."
--Steve Vinoski, Chief Engineer, Product Innovation, IONA Technologies
"The Primer really brings this large and complex language down to size."
--Justin Shaw, Senior Member of Technical Staff, Electronic Programs Division, The Aerospace Corporation
"[It] not only gets novices up and running early, but gets them to do so using good programming practices."
--Nevin ":-)" Liber, Senior Principal Engineer (C++ developer since 1988)
This popular tutorial introduction to standard C++ has been completely updated, reorganized, and rewritten to help programmers learn the language faster and use it in a more modern, effective way.
Just as C++ has evolved since the last edition, so has the authors' approach to teaching it. They now introduce the C++ standard library from the beginning, giving readers the means to write useful programs without first having to master every language detail. Highlighting today's best practices, they show how to write programs that are safe, can be built quickly, and yet offer outstanding performance. Examples that take advantage of the library, and explain the features of C++, also show how to make the best use of the language. As in its previous editions, the book's authoritative discussion of fundamental C++ concepts and techniques makes it a valuable resource even for more experienced programmers.
Program Faster and More Effectively with This Rewritten Classic- Restructured for quicker learning, using the C++ standard library
- Updated to teach the most current programming styles and program design techniques
- Filled with new learning aids that emphasize important points, warn about common pitfalls, suggest good programming practices, and provide general usage tips
- Complete with exercises that reinforce skills learned
- Authoritative and comprehensive in its coverage
About the Author
Stanley B. Lippman is Architect with the Visual C++ development team at Microsoft. Previously, he served as a Distinguished Consultant at the Jet Propulsion Laboratories (JPL). Stan spent more than twelve years at Bell Laboratories, where he worked with Bjarne Stroustrup on the original C++ implementation and the Foundation research project. After Bell Laboratories, Stan worked at Disney Feature Animation, originally as principal software engineer, then as software technical director on Fantasia 2000.
Josée Lajoie is a staff development analyst in the IBM Canada Laboratory C/C++ Compiler group, and is currently the chair of the core language working group for the ANSI/ISO C++ Standard Committee. In addition, she is a regular columnist on the evolution of the C++ Language Standard for the C++ Report..
Barbara E. Moo is an independent consultant with 20 years' experience in the software field. During her nearly 15 years at AT&T, she worked on one of the first commercial products ever written in C++, managed the company's first C++ compiler project, and directed the development of AT&T's award-winning WorldNet Internet service business.
0201721481AB01312005
Excerpt. © Reprinted by permission. All rights reserved.
C++ Primer, Fourth Edition, provides a comprehensive introduction to the C++ language. As a primer, it provides a clear tutorial approach to the language, enhanced by numerous examples and other learning aids. Unlike most primers, it also provides a detailed description of the language, with particular emphasis on current and effective programming techniques.
Countless programmers have used previous editions of C++ Primer to learn C++. In that time C++ has matured greatly. Over the years, the focus of the language--and of C++ programmers--has grown beyond a concentration on runtime efficiency to focus on ways of making programmers more efficient. With the widespread availability of the standard library, it is possible to use and learn C++ more effectively than in the past. This revision of the C++ Primer reflects these new possiblities.
Changes to the Fourth Edition
In this edition, we have completely reorganized and rewritten the C++ Primer to highlight modern styles of C++ programming. This edition gives center stage to using the standard library while deemphasizing techniques for low-level programming. We introduce the standard library much earlier in the text and have reformulated the examples to take advantage of library facilities. We have also streamlined and reordered the presentation of language topics.
In addition to restructuring the text, we have incorporated several new elements to enhance the reader's understanding. Each chapter concludes with a Chapter Summary and glossary of Defined Terms, which recap the chapter's most important points. Readers should use these sections as a personal checklist: If you do not understand a term, restudy the corresponding part of the chapter.
We've also incorporated a number of other learning aids in the body of the text:
- Important terms are indicated in bold; important terms that we assume are already familiar to the reader are indicated in bold italics. Each term appears in the chapter's Defined Terms section.
- Throughout the book, we highlight parts of the text to call attention to important aspects of the language, warn about common pitfalls, suggest good programming practices, and provide general usage tips. We hope that these notes will help readers more quickly digest important concepts and avoid common pitfalls.
- To make it easier to follow the relationships among features and concepts, we provide extensive forward and backward cross-references.
- We have provided sidebar discussions that focus on important concepts and supply additional explanations for topics that programmers new to C++ often find most difficult.
- Learning any programming language requires writing programs. To that end, the primer provides extensive examples throughout the text. Source code for the extended examples is available on the Web at the following URL:
What hasn't changed from earlier versions is that the book remains a compre-hensive tutorial introduction to C++. Our intent is to provide a clear, complete and correct guide to the language. We teach the language by presenting a series of examples, which, in addition to explaining language features, show how to make the best use of C++. Although knowledge of C (the language on which C++ was originally based) is not assumed, we do assume the reader has programmed in a modern block-structured language.
Structure of This Book
C++ Primer provides an introduction to the International Standard on C++, covering both the language proper and the extensive library that is part of that standard. Much of the power of C++ comes from its support for programming with abstractions. Learning to program effectively in C++ requires more than learning new syntax and semantics. Our focus is on how to use the features of C++ to write programs that are safe, that can be built quickly, and yet offer performance comparable to the sorts of low-level programs often written in C.
C++ is a large language and can be daunting to new users. Modern C++ can be thought of as comprising three parts:
- The low-level language, largely inherited from C
- More advanced language features that allow us to define our own data types and to organize large-scale programs and systems
- The standard library, which uses these advanced features to provide a set of useful data structures and algorithms
Most texts present C++ in this same order: They start by covering the low-level details and then introduce the more advanced language features. They explain the standard library only after having covered the entire language. The result, all too often, is that readers get bogged down in issues of low-level programming or the complexities of writing type definitions and never really understand the power of programming in a more abstract way. Needless to say, readers also often do not learn enough to build their own abstractions.
In this edition we take a completely different tack. We start by covering the basics of the language and the library together. Doing so allows you, the reader, to write significant programs. Only after a thorough grounding in using the library-- and writing the kinds of abstract programs that the library allows--do we move on to those features of C++ that will enable you to write your own abstractions.
Parts I and II cover the basic language and library facilities. The focus of these parts is to learn how to write C++ programs and how to use the abstractions from the library. Most C++ programmers need to know essentially everything covered in this portion of the book.
In addition to teaching the basics of C++, the material in Parts I and II serves another important purpose. The library facilities are themselves abstract data types written in C++. The library can be defined using the same class-construction features that are available to any C++ programmer. Our experience in teaching C++ is that by first using well-designed abstract types, readers find it easier to understand how to build their own types.
Parts III through V focus on how we can write our own types. Part III introduces the heart of C++: its support for classes. The class mechanism provides the basis for writing our own abstractions. Classes are also the foundation for object-oriented and generic programming, which we cover in Part IV. The Primer concludes with Part V, which covers advanced features that are of most use in structuring large, complex systems.
0201721481P01312005
Product details
- Publisher : Addison-Wesley Professional
- Publication date : January 1, 2005
- Edition : 4th
- Language : English
- Print length : 885 pages
- ISBN-10 : 0201721481
- ISBN-13 : 978-0201721485
- Item Weight : 2.85 pounds
- Dimensions : 6.75 x 1.5 x 9 inches
- Best Sellers Rank: #1,684,566 in Books (See Top 100 in Books)
- #344 in C++ Programming Language
- #1,370 in Computer Programming Languages
- #4,587 in Computer Software (Books)
- Customer Reviews:
About the author

Stanley B. Lippman is a computer scientist and author. He is most widely known as an author of C++ Primer book, which is currently published as 5th edition. He has worked with Bjarne Stroustrup in Bell Laboratories during early stages of C++ development. In 2001, Stanley Lippman became an Architect for Visual C++. In 2007, he joined Emergent Game Technologies. He then worked for NASA, Pixar and is now working at 2kQubits according to his LinkedIn page.
Bio from Wikipedia, the free encyclopedia.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book excellent as a general reference, providing detailed explanations of pointers and introducing best programming practices. Moreover, they appreciate its fantastic knowledge of C++ and consider it well worth the money. However, the readability receives mixed feedback, with some finding it easily readable while others say the code examples are unnecessarily complex. Additionally, customers disagree on the book's length, with one noting it's over 800 pages long.
AI Generated from the text of customer reviews
Select to learn more
Customers find the book's explanations clear and comprehensive, particularly praising its detailed coverage of pointers and introduction to best programming practices.
"...with the many forward and backward cross-references, makes it a great reference both for people who have never read it, and for those who read it a..." Read more
"...you started with programming in the best way and introduce you to the best programming practices, but it can also scare you in the beginning, so you..." Read more
"...The examples are very reflective of the information presented, and they usually include some "won't work" examples so the syntax is clear...." Read more
"...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...." Read more
Customers praise the book's comprehensive coverage of C++ development, with one customer noting it covers everything of the language, while another highlights its use of modern C++ techniques.
"...In contradistinction to many other popular volumes, this book teaches real C++, not "C with classes", i.e., it contains extensive treatments of the..." Read more
"...Anyway, this is one of the best programming books i've ever read: if you are a computer science student, a programmer who wants to learn C++ or a..." Read more
"...to beginners more than any other for it's clarity and use of modern C++ techniques...." Read more
"...demonstrate each feature will, like the depth of treatment, make you a better programmer, even though it seriously slows you down in the..." Read more
Customers find the book well worth the money.
"...I finished it with great smile: I learned C++ and the money was well spent...." Read more
"...Well worth the money, a great book for both reference and learning." Read more
"The book was new and the price was great. I recommend it for everyone." Read more
"AWESOME DEAL!..." Read more
Customers appreciate the material quality of the book, with one mentioning it provides a solid background and another noting it helps master the content.
"...do take this book, work through it from start to finish, and really master the material, you'll have a fantastic knowledge of C++...." Read more
"...a broad range of concepts in the subject and the material is presented in a very logical and orderly manner...." Read more
"...C++ language and give the newcomers to programming (in general) a solid background...." Read more
Customers have mixed opinions about the readability of the book, with some finding it well written and easily readable, while others note that the code examples are unnecessarily complex and the content is too unorganized.
"...there are exercises at the end of most sections; these are well thought out, and greatly facilitate the reader's learning..." Read more
"...This version is completely wrecked and unreadable. The formatting is all messed up. Headers and footers are all interspersed in with the text." Read more
"...In contrast, This 4th ed. C++ primer is concise and meanwhile intensively convering almost every aspect about c++ that a novice shall be aware of...." Read more
"...in the subject and the material is presented in a very logical and orderly manner. My order arrived quickly and in very good condition." Read more
Customers have mixed opinions about the book's length, with one finding it not too long, while another mentions it being over 800 pages.
"...The Good: This book is over 800 pages long, and it is quite complete in its coverage, but it is highly readable...." Read more
"...The answer comes down to style. This book rarely expends space on full-length, executable code examples...." Read more
"...only thing i disliked about the book, funny to say, is that while not too long (the fourth edition is about 800 pages long), the book is so full of..." Read more
"The print is so small that you may need a magnifier to read it. The type is not very dark, either...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on March 7, 2010Format: PaperbackVerified PurchaseAs pointed out in other reviews: compared to previous editions, the 4th edition of the "C++ Primer" is considerably different (and shorter). For this edition, Barbara E. Moo (co-author of "Accelerated C++"), a long-time programmer and writer, vastly revamped and enhanced Stan Lippman's (and Josee Lajoie's) classic.
The Good: This book is over 800 pages long, and it is quite complete in its coverage, but it is highly readable. The "C++ Primer" can be used as an introductory text: the authors have interspersed a myriad of code snippets throughout the text (which they also integrated into complete working programs; these are provided on the publisher's website, packaged for different platforms). Similarly, there are exercises at the end of most sections; these are well thought out, and greatly facilitate the reader's learning (unauthorized solutions exist on the web in the form of a wiki). Furthermore, throughout the book parts of the text have been highlighted to call attention to common pitfalls, good programming practices, and important concepts. Finally, each chapter concludes with a summary and a glossary of defined terms. In contradistinction to many other popular volumes, this book teaches real C++, not "C with classes", i.e., it contains extensive treatments of the standard library containers and algorithms, of object-oriented programming, and of generic programming. For example, the coverage of the standard library in this book is much more extensive than in "C++ Primer Plus" by Stephen Prata, a book that is often compared with (or confused with) the "C++ Primer". Even so, the "C++ Primer" also covers a number of older topics such as C-style character strings, lower-level bit manipulation of integral values, and old-style casts. The material in this book is thematically organized (pointers, expressions, functions, classes, constructors, object-oriented programming, template programming, etc.). This, along with the many forward and backward cross-references, makes it a great reference both for people who have never read it, and for those who read it a while back.
The Bad: Object-oriented programming is covered in approximately 60 pages. The coverage is solid, just like in the rest of the book, but it is condensed. For the sake of comparison: Josuttis's book "Object-Oriented Programming in C++" devotes 170 pages on more or less the same topics. In other words, an object-oriented design background, while not strictly necessary, would make reading this book easier. This aspect of "condensedness" is a more general feature of reading the "C++ Primer": even though the book is quite long, there is no filler material. This slows the reader down, so it might interfere with one's progress when using this as a first C++ book. For example, the first 300 pages (perhaps mention but) do not discuss in detail the standard library algorithms, smart pointers, object-oriented or generic programming, and other aspects of professional C++ development. A related point: I mentioned above that the book works as a reference since it is complete and contains many cross-references. A side-effect of this is that some of the earlier chapters make repeated mention of topics that have not yet been covered; that's great if this is your second C++ book (since it means every chapter is complete), but is potentially too much information for a total newbie. Finally, this book was intentionally limited to Standard C++. As a result, it doesn't talk about TR1 (a specification for functionality being added to C++'s standard library) or boost (a collection of libraries offering TR1 implementations and much more), or threading in C++. A 5th edition of the "C++ Primer" will probably appear after the new standard (still known as C++0x) comes out.
Despite the few drawbacks that I have noted above, I believe that this is a wonderful book which deserves 5 stars.
----------------
Here are my suggestions on related reading.
Recommended prequel:
* Accelerated C++, by Andrew Koenig and Barbara E. Moo
An excellent first book on C++. Goes through many topics quite fast, but is highly readable. Covers essentially all of standard C++ in under 300 pages (see also my review of it on amazon).
Recommended follow-up:
* Effective C++, 3rd edition, by Scott Meyers
This assumes you have already come across all of the material contained in the "C++ Primer". It offers solid advice on numerous aspects of effective C++ development. Meyers also describes a few design patterns as well as more modern topics like TR1.
Alexandros Gezerlis
- Reviewed in the United States on July 15, 2008Format: PaperbackVerified PurchaseIn 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 potentialities of this language.
However, modern C++ is a lot different from the one most books try to teach: i've got a lot of C++ books like Deitels' and Schlidt's, but all they offer is a overview of a "pre-standard-like" C++: a lot of chapters and exercises on arrays, pointers, C-like-strings, just like this was the core of the modern C++ language.
This book focuses instead on the things a C++ programmer should know today, his swiss-army-knife: the STL and the standard library. The book introduces vectors and strings first, then compares them with old-fashioned arrays/pointers and char*s.
This is not a book about introducing "new stuff" into the C programming language, but about learning C++ like a whole new language, thus changing the way you approach programming (a lot of other books introduces STL only in the last 2 o 3 chapters!).
The only thing i disliked about the book, funny to say, is that while not too long (the fourth edition is about 800 pages long), the book is so full of contents that a newcomer may probably find it overwhelming.
Not only it introduces classes and STL in the first chapters, but it also goes in a much deeper level of detail than other books, so if you haven't any programming (and, maybe a little C++) experience, you'll probably be going "back and forth" searching for concepts and explaination you didn't care too much about (like the notions about constructors given in the first chapter, wich would seem rather abstract if you don't know how a data structure is realized).
Anyway, this is one of the best programming books i've ever read: if you are a computer science student, a programmer who wants to learn C++ or a C++ programmer who wants to really understand "what's behind the scenes", you have to buy this!
If you are a novice in programming, this book could make you started with programming in the best way and introduce you to the best programming practices, but it can also scare you in the beginning, so you'd probably want to start elsewhere (probably with Accelerated C++, or C++ Primer Plus).
- Reviewed in the United States on January 12, 2023This review is specifically about the Kindle version of the book. This version is completely wrecked and unreadable. The formatting is all messed up. Headers and footers are all interspersed in with the text.
- Reviewed in the United States on January 15, 2011Format: PaperbackVerified PurchaseI am an experienced C programmer and writing software is my job.
Note that there are no answers to the exercises in the book. There is a separate answers book, but that is for the 3rd edition which is supposedly quite different. I don't think that is a reason to not buy the book. However, because of that fact it will NEVER get 5 stars from me -- maybe not even 4 stars. How can you learn from a book like this without finding out if you did the exercises right or not??
Luckily, internet to the rescue: google "C++ Primer 4th Edition answers" and you'll find a wiki site with answers.
I'm now half-way through the book and have found the book to explain everything in a clear and comprehensive way. The examples are very reflective of the information presented, and they usually include some "won't work" examples so the syntax is clear. I believe it's teaching style creates a programmer who thinks in the C++ language. I'm already writing my own apps and maintaining and upgrading C++ software at work.
From searching the C++ forums, where programmers hang out, I found this book is recommended to beginners more than any other for it's clarity and use of modern C++ techniques. So far I recommend this way over "Accelerated C++" which I didn't feel prepared me to write anything but the application it was presenting. So far C++ Primer explains everything much more thoroughly and still has a similar C++ without C approach.
Top reviews from other countries
-
Amazon CustomerReviewed in Brazil on October 6, 20214.0 out of 5 stars Informatica
Format: PaperbackVerified PurchaseAdequado à sua aplicação.
Lucas StrongReviewed in the United Kingdom on November 16, 20145.0 out of 5 stars Awesome..
Format: PaperbackVerified PurchaseLearnt C++ in 6 weeks..
-
MARIGOT RadjaReviewed in France on January 29, 20205.0 out of 5 stars Qualité du produit
Format: PaperbackVerified PurchaseTrès bon état
eemzReviewed in the United Kingdom on March 3, 20173.0 out of 5 stars The original was better, peaking about rev 2
Format: PaperbackVerified PurchaseThe original was better, peaking about rev 2. Later ones are all about templates etc and watering down the basic message

