SaaS (Software as a Service) 37
SalariedEmployee
class header 554
SalariedEmployee
class implementation file 555
Salary Calculator exercise 151
Sales Commission Calculator exercise 151
Sales Summary exercise 332
Salesperson Salary Ranges exercise 329
savings account 167
SavingsAccount
class 443
Scala 14
scanning images 6
scope 233
class 233
file 233
function 233
function prototype 233
namespace 233
of a symbolic constant or macro 985
of a variable 164
of an identifier 86
scope resolution operator (::) 230
scoped enumeration (enum
class
) 230
scoping example 235
screen-manager program 533
scripting language 10
scrutinize data 392
SDK (Software Development Kit) 37
search
algorithm 748
search algorithms 842
binary search 846
linear search 843
recursive binary search 866
recursive linear search 866
search functions of the string-handling library 935
search_n
algorithm 748
searching array
s 306
searching blocks of memory 939
searching data 842
Searching for Characters exercise 951
Searching for Substrings exercise 951
searching performance 839
second
data member of pair
685
second-degree polynomial 58
second refinement in top-down, stepwise refinement 133
secondary storage 6
secondary storage unit 7
second-degree polynomial 58
security flaws 295
seed function rand
226
seed the random-number generator 725
seek direction 623
seek get 623
seek put 623
select a substring 485
selection sort algorithm 853
selection sort efficiency 853
selection sort with call-by-reference 853
self documenting 52
semicolon that terminates a structure definition 901
send a message to an object 15
sentinel-controlled iteration 207
separate interface from implementation 388
Separating Digits exercise 275
sequence container 658, 665, 667, 675, 678
back
function 674
empty
function 675
front
function 674
insert
function 675
sequence of random numbers 226
sequence-structure activity diagram 107
sequential execution 106
serialized object 644
<set>
header 221
set_intersection
739
set of recursive calls to method Fibonacci
259
set
operations of the Standard Library 737
set_new_handler
specifying the function to call when new
fails 771
setbase
stream manipulator 588
shadow 423
Shakespeare, William 953
shape of a tree 839
shell prompt on Linux 20
shift a range of numbers 223
shifted, scaled integers 224
shifted, scaled integers produced by 1
+
rand()
%
6
223
Shifting and Printing an Integer exercise 948
shiftingValue 227
“shipping” section of the computer 6
shopping list 117
short-circuit evaluation 190
shrink_to_fit
member function of classes vector
and deque
672
shuffle cards 948
shuffling algorithm 903
sibling 823
sides of a right triangle 156
sides of a triangle 155
sign extension 906
sign left justified 592
signal value 123
signatures of overloaded prefix and postfix increment operators 461
significant digits 593
simple condition 188
Simple Decryption 897
simulation 379
Simulation: Tortoise and the Hare exercise 374
sin
function 215
sine 215
single entry point 194
single exit point 194
single inheritance 499
single-line comment 46
single-precision floating-point number 169
single quote 48
single quote ('
) 364
six-sided die 223
size
function of string
632
size
member function of array
285
size
member function of containers 659
size
member function of priority_queue
694
size
member function of queue
693
size
member function of stack
691
size
member function of vector
320
size of a string
877
size of a variable 54
size of an array 356
size_t
type 356
size_type
661
sizeof
operator when applied to an array name returns the number of bytes in the array 356
sizes of the built-in data types 652
skipws
stream manipulator 592
small circles in the UML 107
smallest
269
smallest of several integers 206
SML 377
SML operation code 377
SMS Language exercise 898
Software as a Service (SaaS) 37
Software Development Kit (SDK) 37
solid circle in the UML 107
solid circle surrounded by a hollow circle in the UML 107
solution 21
Solution Explorer 23
sort key 842
sort
member function of list
679
sort_heap
algorithm 748
source code 17
source-code file 76
space–time trade-off 670
spaces for padding 595
space-time trade-off 637
Spam Scanner 898
speaking to a computer 6
special character 365
special characters 51
Special Section: Building Your Own Computer 376
special symbol 8
specialization of a class template 580
spelling checker 957
spiral 257
splice
member function of list
679
splice_after
member function of class template forward_list
679
split the array in merge sort 855
spooler 820
sqrt
function of <cmath>
header 215
square 154
square
function 220
Square of Any Character exercise 275
stable_partition
algorithm 748
stable_sort
algorithm 748
<stack>
header 221
stack
adapter class 691
empty
function 691
pop
function 691
push
function 691
size
function 691
top
function 691
stack frame 237
<stack>
header 691
stack<int>
792
Stack<T>
790
stacking building blocks 198
stacking control statements 199
stacking rule 196
stacks used by compilers 835
standard data type sizes 357
standard error stream (cerr
) 19
standard exception classes 776
Standard Library 213
class string
449
container classes 658
deque
class template 680
exception classes 775
exception hierarchy 775
function sort
850
list
class template 676
map
class template 689
multimap
class template 687
multiset
class template 682
priority_queue
adapter class 694
queue
adapter class templates 693
set
class template 686
stack
adapter class 691
vector
class template 668
standard stream libraries 579
Standard Template Library 656
“warehouse” section of the computer 7
Start Page 21
statement spread over several lines 62
statement terminator (;) 47
Statements 125
statements
control-statement nesting 109
control-statement stacking 109
empty 114
looping 108
multiple selection 108
nested control statements 131
repetition 108
single selection 108
throw
392
try
322
static
array
initialization 296
static
array
initialization and automatic array
initialization 296
static binding 541
static
data member to maintain a count of the number of objects of a class 430
static
keyword 234
static
member 430
static
member function 430
static_cast
192
static_cast
(compile-time type-checked cast) 286
std
namespace 870
std::cin
53
std::cout
47
std::endl
stream manipulator 54
__STDC__
predefined symbolic constant 988
StepStone 33
STL 656
STL exception types 674
stod
function 891
stof
function 891
stoi
function 891
stol
function 891
stold
function 891
stoll
function 891
storage alignment 901
storage unit 917
storage-unit boundary 917
store a lambda in a variable 729
stoul
function 891
stoull
function 891
straight-time 151
strchr
function of header <cstring>
935
stream base 588
stream input/output 46
stream manipulator 54, 130, 169, 587, 595, 622
dec
588
endl
54
hex
588
noboolalpha
599
noshowbase
597
noshowpoint
593
noskipws
592
oct
588
quoted
627
scientific
597
setbase
588
showbase
597
showpos
595
skipws
592
stream of bytes 579
stream of characters 47
stream operation failed 603
<string>
header 222
string being tokenized 929
string
class 77, 80, 448, 451, 871
assignment and concatenation 872
at
member function 453
comparison 873
copy constructor 870
empty
member function 452
find functions 880
find
member function 880
insert functions 883
insert
member function 883
Iterators 895
size
member function 178
subscript operator []
873
substr
member function 452
string
class from the Standard Library 222
string
concatenation 178
string constant 365
string length 929
string manipulation 213
string of characters 47
string
stream processing 887
string::npos
881
string
-object literal 452
strings as full-fledged objects 364
Strings Beginning with b
exercise 951
Strings Ending with ED
exercise 951
Stroustrup, B. 11
struct
900
structure members default to private
access 900
structure name 900
structure type 900
Student Inheritance Hierarchy exercise 529
student-poll-analysis program 294
subclass 498
subproblem 254
subscript 284
subscript 0 (zero) 285
subscript out of range 674
subscripted name used as an rvalue 472
subscripting 680
subscripting with a pointer and an offset 363
substring 485
substring length 485
substring of a string
876
subtract one pointer from another 359
subtraction compound assignment operator, -=
137
sum of the elements of an array
290
Summing and Averaging Elements in a List exercise 835
superclass 498
supermarket simulation 837
swap
member function of class string
876
swap
member function of containers 660
swap
member function of list
679
swapping string
s 876
Swift programming language 33
switch
multiple-selection statement 108, 180, 185, 198
activity diagram with break
statements 185
case
label 184
controlling expression 184
symbol 870
symbol values 968
symbolic constant NDEBUG
988
symbolic constant PI
984
symmetric key encryption 895
synchronize operation of an istream
and an ostream
604
synchronous error 767
syntax 47
syntax error 47