The C++ Programming Language (hardcover) / Edition 4

Hardcover (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $50.64
Usually ships in 1-2 business days
(Save 40%)
Other sellers (Hardcover)
  • All (16) from $50.64   
  • New (10) from $59.20   
  • Used (6) from $50.64   


The new C++11 standard allows programmers to express ideas more clearly, simply, and directly, and to write faster, more efficient code. Bjarne Stroustrup, the designer and original implementer of C++, has reorganized, extended, and completely rewritten his definitive reference and tutorial for programmers who want to use C++ most effectively.

The C++ Programming Language, Fourth Edition, delivers meticulous, richly explained, and integrated coverage of the entire language—its facilities, abstraction mechanisms, standard libraries, and key design techniques. Throughout, Stroustrup presents concise, “pure C++11” examples, which have been carefully crafted to clarify both usage and program design. To promote deeper understanding, the author provides extensive cross-references, both within the book and to the ISO standard.

New C++11 coverage includes

  • Support for concurrency
  • Regular expressions, resource management pointers, random numbers, and improved containers
  • General and uniform initialization, simplified for-statements, move semantics, and Unicode support
  • Lambdas, general constant expressions, control over class defaults, variadic templates, template aliases, and user-defined literals
  • Compatibility issues

Topics addressed in this comprehensive book include

  • Basic facilities: type, object, scope, storage, computation fundamentals, and more
  • Modularity, as supported by namespaces, source files, and exception handling
  • C++ abstraction, including classes, class hierarchies, and templates in support of a synthesis of traditional programming, object-oriented programming, and generic programming
  • Standard Library: containers, algorithms, iterators, utilities, strings, stream I/O, locales, numerics, and more
  • The C++ basic memory model, in depth

This fourth edition makes C++11 thoroughly accessible to programmers moving from C++98 or other languages, while introducing insights and techniques that even cutting-edge C++11 programmers will find indispensable.

This is a hardcover version of the Fourth Edition. Content in this hardcover and the paperback version is identical.

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

Read More Show Less

Product Details

  • ISBN-13: 9780321958327
  • Publisher: Addison-Wesley
  • Publication date: 8/2/2013
  • Edition number: 4
  • Pages: 1368
  • Sales rank: 293,000
  • Product dimensions: 7.50 (w) x 9.00 (h) x 1.90 (d)

Meet the Author

Bjarne Stroustrup ( is the designer and original implementer of C++, as well as the author of Programming: Principles and Practice Using C++" (Addison-Wesley, 2009), The C++ Programming Language (Addison-Wesley, 1985, 1991, 1997, 2000), and many popular and academic publications. Dr. Stroustrup is a University Distinguished Professor at Texas A&M University and the holder of the College of Engineering Chair in Computer Science. He is a member of the U.S. National Academy of Engineering, an IEEE Fellow, and an ACM fellow. His research interests include distributed systems, design, programming techniques, software development tools, and programming languages. He is actively involved in the ISO standardization of C++.

Read More Show Less

Table of Contents

Preface to the Fourth Edition v
Preface to the Third Edition ix
Preface to the Second Edition xi
Preface to the First Edition xii
Part I: Introductory Material 1
Chapter 1: Notes to the Reader 3
Chapter 2: A Tour of C++: The Basics 37
Chapter 3: A Tour of C++: Abstraction Mechanisms 59
Chapter 4: A Tour of C++: Containers and Algorithms 87
Chapter 5: A Tour of C++: Concurrency and Utilities 111

Part II: Basic Facilities 133

Chapter 6: Types and Declarations 135
Chapter 7: Pointers, Arrays, and References 171
Chapter 8: Structures, Unions, and Enumerations 201
Chapter 9: Statements 225
Chapter 10: Expressions 241
Chapter 11: Select Operations 273
Chapter 12: Functions 305
Chapter 13: Exception Handling 343
Chapter 14: Namespaces 389
Chapter 15: Source Files and Programs 419
Part III: Abstraction Mechanisms 447
Chapter 16: Classes 449
Chapter 17: Construction, Cleanup, Copy, and Move 481
Chapter 18: Overloading 527
Chapter 19: Special Operators 549
Chapter 20: Derived Classes 577
Chapter 21: Class Hierarchies 613
Chapter 22: Run-Time Type Information 641
Chapter 23: Templates 665
Chapter 24: Generic Programming 699
Chapter 25: Specialization 721
Chapter 26: Instantiation 741
Chapter 27: Templates and Hierarchies 759
Chapter 28: Metaprogramming 779
Chapter 29: A Matrix Design 827
Part IV: The Standard Library 857
Chapter 30: Standard Library Summary 859
Chapter 31: STL Containers 885
Chapter 32: STL Algorithms 927
Chapter 33: STL Iterators 953
Chapter 34: Memory and Resources 973
Chapter 35: Utilities 1009
Chapter 36: Strings 1033
Chapter 37: Regular Expressions 1051
Chapter 38: I/O Streams 1073
Chapter 39: Locales 1109
Chapter 40: Numerics 1159
Chapter 41: Concurrency 1191
Chapter 42: Threads and Tasks 1209
Chapter 43: The C Standard Library 1253
Chapter 44: Compatibility 1267
Index 1281

Read More Show Less

Customer Reviews

Average Rating 3.5
( 3 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted December 20, 2014

    This is the best book for c++ that exists

    This is the best book for c++ that exists

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 21, 2014

    No text was provided for this review.

  • Anonymous

    Posted March 4, 2014

    No text was provided for this review.

Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)