double quote (“), 59
Double( ) function, 123
Doubler( ) function, 115
doubly linked lists, 875
DrawShape( ) function,
290-291
dynamic binding, 395
dynamic_cast operator, 453
dynamic model (classes)
collaboration diagrams,
364
sequence diagrams,
363-364
state transition diagrams,
364-366
E
editors, text, 14
built-in editors, 22
compared to word
processors, 21
elements of arrays, 408-409,
415
#else precompiler
command, 754-755
else keyword, 84-85
Employee class, 542-544
empty for loops, 191-193
empty( ) function, 695
encapsulation, 10, 594
end( ) function, 702
endl object, 30
endless loops
exiting, 202
switch statement, 201-204
while (true), 183-184
enum keyword, 61
enumerated constants
example, 62-63
syntax, 61
values, 61-62
enumerations in arrays, 415
environments, 14
equal sign (=)
assignment operator (=),
50, 71, 317-320
equality operator (= =),
79-80
errors. See also bugs
cannot find file, 17
class declarations,
159-162
compile errors, 20-21, 162
fence post errors, 413
referencing nonexistent
objects, 281-283
stray pointers, 247
warning messages, 22
escape characters, 58-59
eternal loops
exiting, 202
switch statement, 201-204
while (true), 183-184
evaluating
expressions, 70
logical operators, 92
examining memory,
229-231, 747
exceptions, 717-720
advantages, 748
assert( ) macro, 763
catching, 728-729
multiple exceptions,
729-732
try...catch blocks,
719-722
class hierarchies,
732-735
compiler support, 720
data
passing by reference,
739-742
reading, 735
disadvantages, 749
multiple, 729-732
programming tips,
745-746
sample program, 717-718
templates, 742-745
throwing, 722-728
virtual functions, 739-742
exclamation point (!), 92
exclusive OR bitwise
operator, 774
executable files, 15
executing
functions, 105
Hello World program, 18
exiting loops
break statement, 180
endless loops, 202
expressions, 69. See also
operators
branching, 200-201
evaluating, 70
nested parentheses, 78
external linkage, 641-642
extraction operator (>>),
599, 603-604
F
%f conversion specifier, 621
\f escape code, 58
Factor( ) function
pointers, 268-269
references, 270-271
Fahrenheit, converting to
Celsius, 106
false/true operations,
93-94
fence post errors, 413
fib( ) function, 197
Fibonacci series
recursion, 124-128
solving with iteration,
196-198
fields, bit, 775-778
FIFO (first in, first out), 703
files. See also specific
filenames
appending, 626-628
binary files, 629-631
executable files, 15
filename extensions
.c, 14
.cp, 14
.cpp, 14, 162
.h, 163
.hp, 163
.hpp, 163
.obj, 15
894 double quote (“)
34 0672327112 index.qxd 11/19/04 12:31 PM Page 894