A Tour of C++

Overview

The 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++, thoroughly covers the details of this language and its use in his definitive reference, The C++ Programming Language, Fourth Edition.

In A Tour of C++ , Stroustrup excerpts the overview chapters from that complete reference, expanding and enhancing them to give an experienced ...

See more details below
Paperback (New Edition)
$23.56
BN.com price
(Save 21%)$29.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (13) from $19.92   
  • New (9) from $19.92   
  • Used (4) from $22.48   
A Tour of C++

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$13.49
BN.com price
(Save 43%)$23.99 List Price

Overview

The 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++, thoroughly covers the details of this language and its use in his definitive reference, The C++ Programming Language, Fourth Edition.

In A Tour of C++ , Stroustrup excerpts the overview chapters from that complete reference, expanding and enhancing them to give an experienced programmer–in just a few hours–a clear idea of what constitutes modern C++. In this concise, self-contained guide, Stroustrup covers most major language features and the major standard-library components–not, of course, in great depth, but to a level that gives programmers a meaningful overview of the language, some key examples, and practical help in getting started.

Stroustrup presents the C++ features in the context of the programming styles they support, such as object-oriented and generic programming. His tour is remarkably comprehensive. Coverage begins with the basics, then ranges widely through more advanced topics, including many that are new in C++11, such as move semantics, uniform initialization, lambda expressions, improved containers, random numbers, and concurrency. The tour ends with a discussion of the design and evolution of C++ and the extensions added for C++11.

This guide does not aim to teach you how to program (see Stroustrup’s Programming: Principles and Practice Using C++ for that); nor will it be the only resource you’ll need for C++ mastery (see Stroustrup’s The C++ Programming Language, Fourth Edition, for that). If, however, you are a C or C++ programmer wanting greater familiarity with the current C++ language, or a programmer versed in another language wishing to gain an accurate picture of the nature and benefits of modern C++, you can’t find a shorter or simpler introduction than this tour provides.

Read More Show Less

Product Details

  • ISBN-13: 9780321958310
  • Publisher: Addison-Wesley
  • Publication date: 10/3/2013
  • Series: C++ In-Depth Series
  • Edition description: New Edition
  • Edition number: 1
  • Pages: 192
  • Sales rank: 385,694
  • Product dimensions: 7.30 (w) x 8.70 (h) x 0.70 (d)

Meet the Author

Bjarne Stroustrup (www.stroustrup.com) 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, 2013), 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 ix

Chapter 1: The Basics 1

1.1 Introduction 1

1.2 Programs 1

1.3 Hello, World! 2

1.4 Functions 3

1.5 Types, Variables, and Arithmetic 5

1.6 Scope 8

1.7 Constants 8

1.8 Pointers, Arrays, and References 9

1.9 Tests 12

1.10 Advice 14

Chapter 2: User-Defined Types 15

2.1 Introduction 15

2.2 Structures 16

2.3 Classes 17

2.4 Unions 19

2.5 Enumerations 20

2.6 Advice 21

Chapter 3: Modularity 23

3.1 Introduction 23

3.2 Separate Compilation 24

3.3 Namespaces 26

3.4 Error Handling 27

3.5 Advice 31

Chapter 4: Classes 33

4.1 Introduction 33

4.2 Concrete Types 34

4.3 Abstract Types 39

4.4 Virtual Functions 42

4.5 Class Hierarchies 42

4.6 Copy and Move 48

4.7 Advice 56

Chapter 5: Templates 59

5.1 Introduction 59

5.2 Parameterized Types 59

5.3 Function Templates 62

5.4 Concepts and Generic Programming 62

5.5 Function Objects 64

5.6 Variadic Templates 66

5.7 Aliases 67

5.8 Template Compilation Model 68

5.9 Advice 68

Chapter 6: Library Overview 71

6.1 Introduction 71

6.2 Standard-Library Components 72

6.3 Standard-Library Headers and Namespace 72

6.4 Advice 74

Chapter 7: Strings and Regular Expressions 75

7.1 Introduction 75

7.2 Strings 75

7.3 Regular Expressions 78

7.4 Advice 84

Chapter 8: I/O Streams 85

8.1 Introduction 85

8.2 Output 86

8.3 Input 87

8.4 I/O State 89

8.5 I/O of User-Defined Types 90

8.6 Formatting 91

8.7 File Streams 92

8.8 String Streams 92

8.9 Advice 93

Chapter 9: Containers 95

9.1 Introduction 95

9.2 vector 96

9.3 list 100

9.4 map 101

9.5 unordered_map 102

9.6 Container Overview 103

9.7 Advice 104

Chapter 10: Algorithms 107

10.1 Introduction 107

10.2 Use of Iterators 108

10.3 Iterator Types 111

10.4 Stream Iterators 112

10.5 Predicates 113

10.6 Algorithm Overview 114

10.7 Container Algorithms 115

10.8 Advice 115

Chapter 11: Utilities 117

11.1 Introduction 117

11.2 Resource Management 117

11.3 Specialized Containers 121

11.4 Time 125

11.5 Function Adaptors 125

11.6 Type Functions 128

11.7 Advice 131

Chapter 12: Numerics 133

12.1 Introduction 133

12.2 Mathematical Functions 134

12.3 Numerical Algorithms 135

12.4 Complex Numbers 135

12.5 Random Numbers 136

12.6 Vector Arithmetic 138

12.7 Numeric Limits 138

12.8 Advice 138

Chapter 13: Concurrency 141

13.1 Introduction 141

13.2 Tasks and threads 142

13.3 Passing Arguments 143

13.4 Returning Results 144

13.5 Sharing Data 144

13.6 Waiting for Events 146

13.7 Communicating Tasks 147

13.8 Advice 151

Chapter 14: History and Compatibility 153

14.1 History 153

14.2 C++11 Extensions 158

14.3 C/C++ Compatibility 161

14.4 Bibliography 166

14.5 Advice 168

Index 171

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com 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 & Noble.com 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 & Noble.com 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 BN.com 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

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com 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 BN.com. 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

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