.C
extension 17
C-like pointer-based array 659
C programming language 11
C string 364
c_str
member function of class string
885
C# programming language 13
C++ 11
C++ compiler 18
C++ How to Program, 10/e instructor resources xxxv
all_of
algorithm 730
anonymous function objects 708
any_of
algorithm 730
associative container keys are immutable 659
cbegin
container member function 671
cend
container member function 671
cend
function 671
compiler fix for types ending in >>
684
copy_n
algorithm 735
crbegin
container member function 671
crend
container member function 671
crend
function 671
default
special member function 546
default type arguments for function template type parameters 793
delegating constructor 405
find_if_not
algorithm 730
in-class initializer 389
insert
container member function (now returns an iterator) 675
iota
algorithm 749
list initialization of a return type 688
list initialization of associative container 689
minmax
algorithm 743
move
algorithm 734
move assignment operator 660
move constructor 659
move_backward
algorithm 734
noexcept
768
none_of
algorithm 730
non-member container swap
function 660
nullptr
constant 342
override
542
random_device
random-number source 725
random-number generation 292
rend
function 671
scoped enumeration (enum class
) 230
shrink_to_fit
container member function for vector
and deque
672
shuffle
algorithm 725
specifying an enum
’s integral type 232
stod
function 891
stof
function 891
stoi
function 891
stol
function 891
stold
function 891
stoll
function 891
stoul
function 891
stoull
function 891
to_string
function 890
tuple
container 685
unique_ptr
class template 772
unordered_multimap
class template 658
unordered_multiset
class template 658
unordered_set
class template 658
binary literals 914
cbegin
function 671
crbegin
function 671
digit separator '
225
generic lambdas 711
heterogeneous lookup (associative containers) 685
quoted
stream manipulator 627
rbegin
function 671
string
-object literal 452
C++17 39
calculate a salesperson’s earnings 151
Calculating Number of Seconds exercise 275
call stack 354
calling function (caller) 80
calling functions by reference 345
calling method (caller) 213
camel case 79
capacity of a string 877
carbon footprint calculator 42
CarbonFootprint
Abstract Class: Polymorphism exercise 575
carry bit 975
cascading stream insertion operations 54
case
keyword 184
case sensitive 52
casino 228
cast expression 985
cast operator function 481
cast variable visible in debugger 983
catch
a base class object 776
catch
all exceptions 776
catch
block 322
catch
handler 762
catch related errors 776
Catching All Exceptions 782
Catching Derived-Class Exceptions 781
cbegin
library function 671
cbegin
member function of containers 660
cbegin
member function of vector
671
CD 616
ceil
function 214
Celsius and Fahrenheit Temperatures exercise 275
cend
library function 671
cend
member function of containers 660
cend
member function of vector
671
central processing unit (CPU) 7
<cfloat>
header 222
chaining stream insertion operations 54
char
**
932
char*
strings 871
char16_t
579
char32_t
579
character constant 364
character-handling functions 918
isdigit
, isalpha
, isalnum
and isxdigit
919
islower
, isupper
, tolower
and toupper
920
isspace
, iscntrl
, ispunct
, isprint
and isgraph
922
character manipulation 213
character presentation 222
character sequences 628
characters represented as numeric codes 928
character-string manipulation 918
checked access 873
Checkerboard Pattern of Asterisks exercise 155
checkout line in a supermarket 837
child 823
chrono
library 443
cin
(standard input stream) 19, 53, 580, 616, 620
function getline
366
cin.clear
604
cin.eof
583
cin.get
function 584
cin.tie
function 604
Circle Area exercise 280
circular, doubly linked list 814
circular, singly linked list 813
Cisco 3
class
keyword 79
client-code programmer 396
constructor 84
data member 16
default constructor 87
implementation programmer 396
interface 388
interface described by function prototypes 217
public
services 388
class definition 79
class development 469
class-implementation programmer 396
class members default to private
access 900
class variable 304
classes 11
Array
469
array
class template 284
Complex
490
exception
759
HugeInt
492
invalid_argument
776
multimap
687
out_of_range
322
Polynomial
495
priority_queue
694
queue
693
RationalNumber
495
set
685
stack
691
vector
317
classic stream libraries 579
clear
function of ios_base
603
clear
member function of containers 660
clear
member function of first-class containers 675
client
of a class 88
client code 533
client-code programmer 396
<climits>
header 222
Clion 17
close
member function of ofstream
620
<cmath>
header 221
COBOL (COmmon Business Oriented Language) 12
code 16
code maintenance 94
CodeLite 17
coefficient 495
Coin Tossing exercise 276
colon (:
) 419
column 307
column headings 287
column subscript 307
Combining Class Time
and Class Date
exercise 442
combining control statements in two ways 193
comma (,
) 167
command-line argument 352
Command Prompt window 23
commercial data processing 649
CommissionEmployee
class header 556
CommissionEmployee
class implementation file 557
CommissionEmployee
class represents an employee paid a percentage of gross sales 502
CommissionEmployee
class test program 505
CommissionEmployee
class uses member functions to manipulate its private
data 519
Common Programming Errors overview xxxiii
commutative 481
commutative operation 481
compare iterators 666
compare
member function of class string
875
comparing blocks of memory 939
compartment in a UML class diagram 83
compilation phase 47
compile 17
compile-time error 47
compiler error 47
complement operator (~
) 905
Complex
Class 613
Complex
class member-function definitions 491
compound statement 62
computer-assisted instruction (CAI) 281
Difficulty Levels 281
Monitoring Student Performance 281
Reducing Student Fatigue 281
Varying the Types of Problems 282
computer network 820
computer program 5
Computer Simulator exercise 379
Computerization of Health Records exercise 102
computers in education 281
computing the sum of the elements of an array
290
concrete class 547
concrete derived class 552
conditional execution of preprocessing directives 982
conditional expression 114
conditional operator, ?:
114
conditional preprocessing directives 985
conditionally compiled output statement 986
member function 413
member function on a const
object 414
member function on a non-const
object 414
object 414
objects and member functions 414
const
member function 82
const
qualifier before type specifier in parameter declaration 244
const
reference parameter 245
const
version of operator[]
479
const
with function parameters 352
const_pointer
661
const_reference
661
constant integral expression 186
constant reference 478
constant runtime 844
constructed inside out 420
constructor 84
called automatically 405
cannot be virtual
546
copy 477
default arguments 402
deleted 525
explicit
484
function prototype 388
inherit 525
inherit from base class 524
multiple parameters 89
throwing exceptions from 782
container 221, 399, 472, 656, 658, 799
begin
function 660
cbegin
function 660
cend
function 660
clear
function 660
crbegin
function 660
crend
function 660
empty
function 659
end
function 660
erase
function 660
insert
function 659
map
associative container 681
max_size
function 660
multimap
associative container 681
multiset
associative container 681
rbegin
function 660
rend
function 660
set
associative container 681
size
function 659
swap
function 660
unordered_map
associative container 681
unordered_multimap
associative container 681
unordered_multiset
associative container 681
unordered_set
associative container 681
container adapter 658, 659, 665, 690
function pop
691
function push
691
priority_queue
694
queue
693
stack
691
continuous beta 38
control characters 921
controlling expression of a switch
184
converge on the base case 261
convert
among fundamental types by cast 482
among user-defined types and built-in types 481
between types 481
binary number to decimal 973
hexadecimal number to decimal 973
lowercase letters 221
octal number to decimal 973
string
s to C-style strings and character arrays 884
Strings to Floating-Point Numbers exercise 951
strings to floating-point types 891
Strings to Integers exercise 950
strings to integral types 891
converting
Fahrenheit to Celsius exercise 612
Cooking with Healthier Ingredients exercise 897
copy assignment 411
copy of the argument 352
copy_if
algorithm 747
copy-and-paste approach 511
Copying a List in Reverse Order 835
copying strings 924
correct number of arguments 217
correct order of arguments 217
cos
function 214
cosine 214
count
function of associative container 684
counting loop 161
Counting Vowels exercise 896
cout
(standard output stream) 19
cout.put
582
cout.write
586
__cplusplus
predefined symbolic constant 988
.cpp
extension 17
.cpp
filename extension 76
crbegin
library function 671
crbegin
member function of containers 660
crbegin
member function of vector
671
create a random access file 629
create a random-access file with 100 blank records sequentially 633
create a sequential file 617
create an association 689
create an object (instance) 75
create and traverse a binary tree 824
create your own data types 54
Credit inquiry program 623
credit limit on a charge account 150
Credit Limits exercise 150
credit processing program 630
crend
library function 671
member function of containers 660
member function of vector
671
crossword puzzle generator 956
<cstdint>
header 177
<cstdio>
header 222
<csdtlib>
header 771
<Ctrl> key 183
<cstdlib>
header 223
current position in a stream 623
cursor 48
.cxx
extension 17