The C++ Programming Language: Special Edition (3rd Edition) Special Edition
| Bjarne Stroustrup (Author) Find all the books, read about the author, and more. See search results for this author |
Use the Amazon App to scan ISBNs and compare prices.
There is a newer edition of this item:
More than three-quarters of a million programmers have benefited from this book in all of its editions
Written by Bjarne Stroustrup, the creator of C++, this is the world's most trusted and widely read book on C++.
For this special hardcover edition, two new appendixes on locales and standard library exception safety (also available at www.research.att.com/~bs/) have been added. The result is complete, authoritative coverage of the C++ language, its standard library, and key design techniques. Based on the ANSI/ISO C++ standard, The C++ Programming Language provides current and comprehensive coverage of all C++ language features and standard library components.
For example:
- abstract classes as interfaces
- class hierarchies for object-oriented programming
- templates as the basis for type-safe generic software
- exceptions for regular error handling
- namespaces for modularity in large-scale software
- run-time type identification for loosely coupled systems
- the C subset of C++ for C compatibility and system-level work
- standard containers and algorithms
- standard strings, I/O streams, and numerics
- C compatibility, internationalization, and exception safety
Customers who viewed this item also viewed
Customers who bought this item also bought
Editorial Reviews
From the Inside Flap
-- Kristen Nygaard
I find using C++ more enjoyable than ever. C++'s support for design and programming has improved dramatically over the years, and lots of new helpful techniques have been developed for its use. However, C++ is not just fun. Ordinary practical programmers have achieved significant improvements in productivity, maintainability, flexibility, and quality in projects of just about any kind and scale. By now, C++ has fulfilled most of the hopes I originally had for it, and also succeeded at tasks I hadn't even dreamt of.
This book introduces standard C++* and the key programming and design techniques supported by C++. Standard C++ is a far more powerful and polished language than the version of C++ introduced by the first edition of this book. New language features such as name spaces, exceptions, templates, and run-time type identification allow many techniques to be applied more directly than was possible before, and the standard library allows the programmer to start from a much higher level than the bare language.
About a third of the information in the second edition of this book came from the first. This third edition is the result of a rewrite of even larger magnitude. It offers something to even the most experienced C++ programmer; at the same time, this book is easier for the novice to approach that its predecessors were. The explosion of C++ use and the massive amount of experience accumulated as a result makes this possible.
The definition of an extensive standard library makes a difference to the way C++ concepts can be presented. As before, this book presents C++ independently of any particular implementation, and as before, the tutorial chapters present language constructs and concepts in a "bottom up" order so that a construct is used only after it has been defined. However, it is much easier to use a well-designed library than it is to understand the details of its implementation. Therefore the standard library can be used to provide realistic and interesting examples well before a reader can be assumed to understand its inner workings. the standard library itself is also a fertile source of programming examples and design techniques.
This book presents every major C++ language feature and the standard library. It is organized around language and library facilities. However, features are presented in the context of their use. That is, the focus is on the language as the tool for design and programming rather than on the language in itself. This book demonstrates key techniques that make C++ effective and teaches the fundamental concepts necessary for mastery. Except where illustrating technicalities, examples are taken from the domain of systems software. A companion, The Annotated C++ Language Standard, presents the complete language definition together with annotations to make it more comprehensible.
The primary aim of this book is to help the reader understand how the facilities offered by C++ support key programming techniques. The aim is to take the reader far beyond the point where he or she gets code running primarily by copying examples and emulation programming styles from other languages. Only a good understanding of the ideas behind the language facilities leads to mastery. Supplemented by implementation documentation, the information provided is sufficient for completing significant real-world projects. The hope is that this book will help the reader gain new insights and become a better programmer and designer.
Acknowledgments
In addition to the people mentioned in the acknowledgment section of the first and second editions, I would like to thank Matt Austern, Hans Boehm, Don Caldwell, Lawrence Crowl, Alan Feuer, Andrew Forrest, Tim Griffin, Peter Juhl, Brian Kernighan, Andrew Koenig, Mike Mowbray, Rob Murray, Lee Nackman, Joseph Newcomer, Alex Stepanov, David Vandevoorde, Peter Weinberger, and Chris Van Wyk for commenting on draft chapters of this third edition.
I would also like to thank the volunteers on the C++ standards committees who did an immense amount of constructive work to make C++ what it is today. It is slightly unfair to single out individuals, but it would be even more unfair not to mention anyone, so I'd like to especially mention Mike Ball, Dag Brueck, Sean Corfield, Ted Goldstein, Kim Knutilla, Andrew Koenig, Josee Lajoie, Dmitry Lenkov, Nathan Myers, Martin O'Riordan, Tom Plum, Jonathan Shopiro, John Spicer, Jerry Schwarz, Alex Stepanov, and Mike Vilot, as people who each directly cooperated with me over some part of C++ and its standard library.
After the initial printing of this book, many dozens of people have mailed me corrections and suggestions for improvements. I have been able to accommodate many of their suggestions within the framework of the book so that later printings benefitted significantly. Translators of this book into many languages have also provided many clarifications. In response to requests from readers, I have added appendices D and E. Let me take this opportunity to thank a few of those who helped: Dave Abrahams, Matt Austern, Jan Bielawski, Janina Mincer Daszkiewicz, Andrew Koenig, Dietmar Kuehl, Nicolai Josuttis, Nathan Myers, Paul E. Sevinc, Andy Tenne-Sens, Shoichi Uchida, Ping-Fai (Mike) Yang, and Dennis Yelle.
Bjarne Stroustrup
Murray Hill, New Jersey
0201700735P04062001
From the Back Cover
About the Author
Excerpt. © Reprinted by permission. All rights reserved.
Excerpt. © Reprinted by permission. All rights reserved.
Programming is understanding.-- Kristen Nygaard
I find using C++ more enjoyable than ever. C++'s support for design and programming has improved dramatically over the years, and lots of new helpful techniques have been developed for its use. However, C++ is not just fun. Ordinary practical programmers have achieved significant improvements in productivity, maintainability, flexibility, and quality in projects of just about any kind and scale. By now, C++ has fulfilled most of the hopes I originally had for it, and also succeeded at tasks I hadn't even dreamt of.
This book introduces standard C++* and the key programming and design techniques supported by C++. Standard C++ is a far more powerful and polished language than the version of C++ introduced by the first edition of this book. New language features such as name spaces, exceptions, templates, and run-time type identification allow many techniques to be applied more directly than was possible before, and the standard library allows the programmer to start from a much higher level than the bare language.
About a third of the information in the second edition of this book came from the first. This third edition is the result of a rewrite of even larger magnitude. It offers something to even the most experienced C++ programmer; at the same time, this book is easier for the novice to approach that its predecessors were. The explosion of C++ use and the massive amount of experience accumulated as a result makes this possible.
The definition of an extensive standard library makes a difference to the way C++ concepts can be presented. As before, this book presents C++ independently of any particular implementation, and as before, the tutorial chapters present language constructs and concepts in a "bottom up" order so that a construct is used only after it has been defined. However, it is much easier to use a well-designed library than it is to understand the details of its implementation. Therefore the standard library can be used to provide realistic and interesting examples well before a reader can be assumed to understand its inner workings. the standard library itself is also a fertile source of programming examples and design techniques.
This book presents every major C++ language feature and the standard library. It is organized around language and library facilities. However, features are presented in the context of their use. That is, the focus is on the language as the tool for design and programming rather than on the language in itself. This book demonstrates key techniques that make C++ effective and teaches the fundamental concepts necessary for mastery. Except where illustrating technicalities, examples are taken from the domain of systems software. A companion, The Annotated C++ Language Standard, presents the complete language definition together with annotations to make it more comprehensible.
The primary aim of this book is to help the reader understand how the facilities offered by C++ support key programming techniques. The aim is to take the reader far beyond the point where he or she gets code running primarily by copying examples and emulation programming styles from other languages. Only a good understanding of the ideas behind the language facilities leads to mastery. Supplemented by implementation documentation, the information provided is sufficient for completing significant real-world projects. The hope is that this book will help the reader gain new insights and become a better programmer and designer.
Acknowledgments
In addition to the people mentioned in the acknowledgment section of the first and second editions, I would like to thank Matt Austern, Hans Boehm, Don Caldwell, Lawrence Crowl, Alan Feuer, Andrew Forrest, Tim Griffin, Peter Juhl, Brian Kernighan, Andrew Koenig, Mike Mowbray, Rob Murray, Lee Nackman, Joseph Newcomer, Alex Stepanov, David Vandevoorde, Peter Weinberger, and Chris Van Wyk for commenting on draft chapters of this third edition.
I would also like to thank the volunteers on the C++ standards committees who did an immense amount of constructive work to make C++ what it is today. It is slightly unfair to single out individuals, but it would be even more unfair not to mention anyone, so I'd like to especially mention Mike Ball, Dag Brueck, Sean Corfield, Ted Goldstein, Kim Knutilla, Andrew Koenig, Josee Lajoie, Dmitry Lenkov, Nathan Myers, Martin O'Riordan, Tom Plum, Jonathan Shopiro, John Spicer, Jerry Schwarz, Alex Stepanov, and Mike Vilot, as people who each directly cooperated with me over some part of C++ and its standard library.
After the initial printing of this book, many dozens of people have mailed me corrections and suggestions for improvements. I have been able to accommodate many of their suggestions within the framework of the book so that later printings benefitted significantly. Translators of this book into many languages have also provided many clarifications. In response to requests from readers, I have added appendices D and E. Let me take this opportunity to thank a few of those who helped: Dave Abrahams, Matt Austern, Jan Bielawski, Janina Mincer Daszkiewicz, Andrew Koenig, Dietmar Kuehl, Nicolai Josuttis, Nathan Myers, Paul E. Sevinc, Andy Tenne-Sens, Shoichi Uchida, Ping-Fai (Mike) Yang, and Dennis Yelle.
Bjarne Stroustrup
Murray Hill, New Jersey
0201700735P04062001
I'd like to read this book on Kindle
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Product details
- Publisher : Addison-Wesley Professional; Special edition (February 1, 2000)
- Language : English
- Hardcover : 1030 pages
- ISBN-10 : 0201700735
- ISBN-13 : 978-0201700732
- Item Weight : 3.84 pounds
- Dimensions : 8 x 1.75 x 10 inches
- Best Sellers Rank: #308,315 in Books (See Top 100 in Books)
- #142 in C++ Programming Language
- #984 in Computer Programming Languages
- #1,541 in Computer Software (Books)
- Customer Reviews:
About the author

Bjarne Stroustrup is the designer and original implementer of C++.
He is a founding member of the ISO C++ standards committee and a major contributor to modern C++.
He worked at Bell Labs and is now a managing director in Morgan Stanley's technology division.
He is a visiting professor at Columbia University and a fellow of Churchill College, Cambridge.
He is a member of the USA National Academy of Engineering, an ACM, IEEE, and CHM Fellow.
He is a recipient of the Draper Prize.
His publication list is as long as your arm. For details, see his home pages.
Customer reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
When reading the book you can also see some 'problematic' parts of C++. Especially Standard Libary is overcomplicated and hard to use (nearly not using polymorphism because polymorphic calls are too slow). Standard library also doesn't have too much features especially when you compare it to standard libraries of other languages. But of course this is not a problem of the book. Fortunately C++ 11 has more funcionality. (The book is written for C++ 03 standard).
One thing I don't like is naming convention. Function names like 'f', 'g' or field names like 'm' or 's' are not easy to read and suitable just for very trivial examples but not well suited for custom classes.
'The C++ Programming Language: Special Edition' is excellent book, but just for experienced C++ developers. If you are new to C++ and don't have much experience with C and OOP, choose some other book. Even though Bjarne Stroustrup presents philosophy behind object oriented programming I have seen better explanations of OOP. For beginners this could be insufficient.
So if you have never used C++ I recommend you to choose some other book. But if you are experienced C++ developer who wants to improve your C++ knowledge 'The C++ Programming Language: Special Edition' is the great choice.
While I probably wouldn't recommend this as a "first book" to learn any programming language it is definitely one that you should keep around as a reference. If you pick up a lesser C++ book like C++ for Dummies , Sams Teach Yourself C++ in 21 Days (5th Edition) (Sams Teach Yourself) , or Beginning C ++ Through Game Programming, Second Edition you'll want to hang on to this one to clarify any ambiguity.
If you've used C++ and just need a reference this book will definitely help out.
This is hands-down the best C++ book for anyone who really wants to use C++, it will take you through all of the features of the language and not only explain what each feature is for, but also why it was included, and the best way to use it.
I hope I'm not being too repetitive, but BUY THIS BOOK.
However, this book is, like all of the previous editions, NOT a language/programming tutorial. To read this book, you will need tons of C++ & OOP knowledge, even if you are an ace C programmer (since C is quite different from C++ in "The Way of Thinking"). Especially, if you are a novice, please read one or two "good" primer book before coming to this one, otherwise you will get lost easily. (Believe me, it's happened to me before when I tried to read the 2nd edition).
Moreover. In this edition, the author, Bjarne Stroustrup, added 2 more appendixes on "locales" and "standard library exception safety", which would make this book even more useful and more complete than any previous editions. And would make this become "A Bible" for C++ Programmaing Language.
If you are a "serious" C++ programmer (or wannabe), you can't get anything better than this. This is a MUST!
I did find one problem with the book: It does not sufficiently describe how the default compare, assign, and copy operations work. I recently had a problem at work with the default comparison of two instances of an object in an embedded system, and the only way I could debug the problem was by adding debug trace until I narrowed it down to a bad implementation of the default "!=" operator in g++ 4.1.2. Overriding the operator solved the problem, but it took us two days to figure out that the bug was with the compiler and not our code.
For this reason, I give an otherwise outstanding book only 4 stars.
Top reviews from other countries
My 'Amazon Warehouse' purchase of this book was bumped on the spine (hence returned to Amazon by the first buyer), but represents a better than average condition used purchase for me.
If you are a beginner you may find it a little hard, but at least you are going to learn, and you won't remain a beginner forever.
It covers the standard library too. I haven't seen other books about the STL so I refrain from commenting this section.












