Home > Store > Programming > C/C++

larger cover

Add To My Wish List

C++ Programming Language, The, 3rd Edition

Register your product to gain access to bonus material or receive a coupon.

  • About
  • Description
  • Downloads
  • Extras
  • Reviews
  • Sample Content
  • Updates

Features

This is a complete rewrite of the most widely read and most trusted book on C++. Based on the ANSI/ISO C++ final draft, this book covers the C++ language, its standard library, and key design techniques as an integrated whole.

The C++ Programming Language provides comprehensive coverage of 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

With this third edition, Stroustrup makes C++ even more accessible to those new to the language while adding information and techniques that even expert C++ programmers will find invaluable.

NOTE: Customers of this book, Errata for page 833 is now available in pdf form and can be downloaded from this page.

This is a complete rewrite of the most widely read and most trusted book on C++. Based on the ANSI/ISO C++ final draft, this book covers the C++ language, its standard library, and key design techniques as an integrated whole.

The C++ Programming Language provides comprehensive coverage of 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

With this third edition, Stroustrup makes C++ even more accessible to those new to the language while adding information and techniques that even expert C++ programmers will find invaluable.

Source Code

Click below for Source Code related to this title:
Source Code

Related Article

Programming in Languages Other Than C++: Cheap, Dirty Thrills

Interview(s)

Click below for Interview(s) related to this title:
interview.html

Customer Reviews

108 of 113 people found the following review helpful
4.0 out of 5 stars Are You Experienced?, December 12, 2002
By 
Andrew McCaffrey "The Grumpy Young Man" (Satellite of Love, Maryland) - See all my reviews
(VINE VOICE)    (REAL NAME)   
This review is from: C++ Programming Language, The (3rd Edition) (Paperback)
Bjarne Stroustrup's THE C++ PROGRAMMING LANGUAGE is ideal for those potential buyers who already know 75% of what is written in the book. But please note that this is not necessarily a put-down or a bad thing. This book is reference material for people who are already familiar with the concepts and syntax of C++. If you're looking to learn C++ from scratch, then run far and run quickly away from this book. On the other hand, if you're an experienced coder who's looking to remember specific details, or an intermediate who's looking for some nitty-gritty information, then this is a highly recommended reference book.

The writing is meticulous and often obscure. But Stroustrup packs in a lot of detail into every page. The example code is short and to the point. He assumes that if you don't get what he's talking about the first time, then further examples aren't going to help; and most of the time this assumption is justified, as his terse code manages to convey everything that it... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


87 of 92 people found the following review helpful
5.0 out of 5 stars Excellent, useful, complete. Requires interest and effort., January 10, 2000
By 
Clayton (Burnaby, Canada) - See all my reviews
This review is from: C++ Programming Language, The (3rd Edition) (Paperback)
This book is inappropriate for a person who is new to programming. It is even more inappropriate for a quick-and-easy programmer who wants to learn practical skills as quickly as possible but lacks the interest and desire to achieve a high level of skill.

Bookshelves are overflowing with books for these two types of people. Instead of adding another title to that flood, Bjarne Stroustrup delivers a well-written, well-structured book that helps in a challenging area where good resources like this one are needed.

To those who dislike the writing style, I say "sorry, find another book." If you find the sentences hard to read, it is because they are written at a level of clarity and precision required by the concepts. If you find the concepts hard to understand, it is because they are presented with an insightfulness and thoroughness required by the academic/technical audience it is written for. This is neither your fault nor the author's: the book just wasn't... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


20 of 21 people found the following review helpful
5.0 out of 5 stars One of the GREATEST Reference, but NOT a Tutorial., November 25, 1999
This review is from: C++ Programming Language, The (3rd Edition) (Paperback)
From my years of C++, this is definitely the one of the best reference books available. This book cover all the aspects of C++, one of the most complicated programming language, with a nice detail of everything, including STL.

However, this book is NOT a language/programming tutorial. To read this book, you might need tons of C++ & OOP knowledges, even if you are an ace C programmer. If you are a novice, please read any "good" primer book before coming to this one, or you will get lost easily.

If you are a C++ programmer, you can't get anything better than this! This is a MUST, and should be on all C++ programmers' shelf!

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 177 customer reviews...

Praise For C++ Programming Language, The, 3rd Edition

Praise for the third edition

"It is by far the most important book on C++ to appear in years."

-- Amazon.com

"This is an ideal book for programmers new to the concepts of OO programming... Stroustrup's clear style, lavishly illustrated with real-life examples, will never leave you bewildered."

-- Computer Literacy Bookshops

"The definitive guide. Even experienced programmers will learn a lot from it. A 'must-read' for all who are serious about the language."

--JetByte Resources

"It is by far the most important book on C++ to appear in years."

-- Amazon.com

"This is an ideal book for programmers new to the concepts of OO programming... Stroustrup's clear style, lavishly illustrated with real-life examples, will never leave you bewildered."

-- Computer Literacy Bookshops

"The definitive guide. Even experienced programmers will learn a lot from it. A 'must-read' for all who are serious about the language."

--JetByte Resources

Preface

The C++ Programming Language, Third Edition

Bjarne Stroustrup


Preface


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.

Acknowledgements
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 Brück, Sean Corfield, Ted Goldstein, Kim Knutilla, Andrew Koenig, Josée 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.

Bjarne Stroustrup
Murray Hill, New Jersey


*At the time of writing, the C++ Standard is still only a "Final Committee Draft Standard." However, no significant changes to the language or the standard library are anticipated.



0201889544P04062001

Appendix

Click below for Appendix related to this title:
Appendix D
Appendix E

Table of Contents

INTRODUCTORY MATERIAL.

Notes to the Reader.

A Tour of C++.

A Tour of the Standard Library.

I. BASIC FACILITIES.

Types and Declarations.

Pointers, Arrays, and Structures.

Expressions and Statements.

Functions.

Namespaces and Exceptions.

Source Files and Programs.

II. ABSTRACTION MECHANISMS.

Classes.

Operator Overloading.

Derived Classes.

Templates.

Exception Handling.

Class Hierarchies.

III. THE STANDARD LIBRARY.

Library Organization and Containers.

Standard Containers.

Algorithms and Function Objects.

Iterators and Allocators.

Strings.

Streams.

Numerics.

IV. DESIGN USING C++.

Development and Design.

Design and Programming.

Roles of Classes.

APPENDICES.

The C++ Grammar.

Compatibility.

Technicalities. 0201889544T04062001

Downloadable Sample Chapter

Click below for Sample Chapter related to this title:
Chapter1.pdf

Chapter2.pdf

Errata

Click below for Errata related to this title:
833.pdf

 
Add To Cart

Book  $79.99  $63.99

Usually ships in 24 hours.

This book includes free shipping!

Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.