Search and Find
Service
Contents at a Glance
4
Contents
7
About the Author
21
About the Technical Reviewer
22
Acknowledgments
23
Introduction
24
Honing Your Tools
30
Reading C++ Code
39
Integer Expressions
47
Strings
53
Simple Input
58
Error Messages
64
For Loops
69
Formatted Output
73
Arrays and Vectors
82
Increment and Decrement
93
Conditions and Logic
99
Compound Statements
107
Introduction to File I/O
117
The Map Data Structure
121
Type Synonyms
127
Characters
130
Character Categories
136
Case-Folding
144
Writing Functions
148
Function Arguments
157
Using Algorithms
165
Overloading Function Names
176
Big and Little Numbers
182
Very Big and Very Little Numbers
191
Documentation
198
Project 1: Body-Mass Index
206
Custom Types
210
Overloading Operators
218
Custom I/O Operators
228
Assignment and Initialization
233
Writing Classes
241
More About Member Functions
249
Access Levels
260
Introduction to Object-Oriented Programming
270
Inheritance
277
Virtual Functions
286
Classes and Types
294
Declarations and Definitions
303
Using Multiple Source Files
315
Function Objects
330
Useful Algorithms
340
Iterators
354
Exceptions
366
More Operators
381
Project 2: Fixed-Point Numbers
392
Function Templates
398
Class Templates
409
Template Specialization
419
Partial Specialization
427
Names and Namespaces
432
Containers
452
International Characters
474
Locales and Facets
483
Text I/O
497
Project 3: Currency Type
510
Pointers
512
Dynamic Memory
526
Exception-Safety
543
Old-Fashioned Arrays
555
Smart Pointers
564
Working with Bits
578
Enumerations
595
Multiple Inheritance
611
Traits and Policies
624
Names and Templates
639
Overloaded Functions
649
Metaprogramming
662
Project 4: Calculator
672
Index
674
All prices incl. VAT