Buy new:
-48% $31.49$31.49
Delivery Friday, October 11
Ships from: Amazon Sold by: USbookStore
Save with Used - Good
$15.10$15.10
Delivery Monday, October 14
Ships from: Amazon Sold by: miracleverse
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 bought this item also bought
C++ Primer PlusPaperback$20.86 shippingGet it as soon as Friday, Oct 11Only 1 left in stock - order soon.
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; 4th edition (January 1, 2005)
- Language : English
- Paperback : 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,836,666 in Books (See Top 100 in Books)
- #486 in C++ Programming Language
- #1,465 in Computer Programming Languages
- #6,425 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.
Related products with free delivery on eligible orders
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 explains everything thoroughly and is an excellent general reference. They also describe the writing style as well-written, concise, and easy to read. Readers say it's a great book for both reference and learning.
AI-generated from the text of customer reviews
Customers find the explanation quality of the book excellent. They say it explains everything much more thoroughly, is an excellent general reference, and can be used as an introductory text. Readers also mention that the book presents a good balance of introductory and advanced topics that greatly facilitate learning. They appreciate the clear and concise explanation of non-beginner areas such as allocators.
"...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
"...C++ primer is concise and meanwhile intensively convering almost every aspect about c++ that a novice shall be aware of...." 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
"...Writing style of the authors - Most of the explanations are very succinct & to the point. 2. I enjoyed the exercises at the end of each section...." Read more
Customers find the writing style comprehensive, well-written, and eloquent. They also say the book is concise, easy to read, and well-thought-out. Readers mention the material is presented in a very logical and orderly manner.
"...there are exercises at the end of most sections; these are well thought out, and greatly facilitate the reader's learning..." Read more
"...Every single subject is explained fully and, in most cases, eloquently...." 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
"...Few things I like about the book are 1. Writing style of the authors - Most of the explanations are very succinct & to the point. 2...." Read more
Customers find the book well worth the money. They say it's a great book for both reference and learning.
"...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
-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
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
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).