Sams Teach Yourself C++ in 21 Days

(singke) #1
less than symbol (<), 28
less than operator, 80
less than or equal
operator, 80
redirection symbol, 17
libraries, 594
defined, 15
iostream, 593
STL (Standard Template
Library), 693
algorithms, 708-711
deque containers, 703
list containers, 701-702
map containers,
704-707
multimap containers,
708
multiset containers,
708
queues, 703
set containers, 708
stacks, 702-703
std namespace,
654-655
vector containers,
694-700
LIFO (last in, first out), 703
linkage
external, 641-642
internal, 641
linked lists, 444
advantages, 446
contravariance,
803-804
doubly linked, 875
example of, 876-884
nodes, 875, 885
sample program
listing, 491-502
singly linked, 875
template-based,
791-803
trees, 875
virtual functions,
804-805

linkers, 6
lists, linked, 444
advantages, 446
contravariance, 803-804
doubly linked, 875
example of, 876-884
nodes, 875, 885
sample program listing,
491-502
singly linked, 875
template-based (code
listing), 791-803
trees, 875
virtual functions, 804-805
literals, 59
local variables, 105-107
defining, 106
example, 106-107
persistence, 233
scope, 105-109
logic errors, 413
logical operators
AND (&&), 91
NOT (!), 92
OR (||), 91
order of evaluation, 92
precedence, 92-93
long data type, 53-54, 64
long integers, 43, 46, 64
loops, 175
do...while
compared to while
loops, 205
example, 186
syntax, 187
endless
exiting, 202
switch statement,
201-204
while (true), 183-184
existing, 180-182
exiting, 180-182
Fibonacci series
application, 196-198

for, 188-190
compared to while
loops, 205
empty loops, 191-193
example, 188-189
initialization, 188
multiple initialization,
190
nesting, 193-195
null statements,
191-193
scope, 195-196
syntax, 189
goto keyword, 176-177
returning to top of,
180-182
while, 177
break statement,
180-183
compared to do...while
loops, 205
compared to for loops,
205
complex loops,
179-180
continue statement,
180-182
exiting, 180-182
returning to top of,
180-182
simple example,
177-178
skipping body of,
184-185
starting conditions,
187-188
syntax, 178
while (true), 183-184

M

macros, 756-757
assert( ), 761-762, 784
debugging functions,
762
exceptions, 763

macros 899

How can we make this index more useful? Email us at [email protected]

34 0672327112 index.qxd 11/19/04 12:31 PM Page 899

Free download pdf