GetString( ), 443, 544
GetUpperLeft( ), 169
GetWeight( ), 164
GetWord( ), 425
header files, 267-268
headers, 36
ignore( ), 610-611
increment functions,
303-304
inheritance
casting down,
453-455, 487
percolating shared
functions, 452
inline functions, 122-124,
163-166, 771-772
Insert( ), 501, 700
IntFillFunction( ), 682
Intrude( ), 670
Invariants( ), 764-769
invoking, 35-36, 129, 133
Iterate( ), 501
main( ), 27, 100
max_size( ), 695
menu( ), 204
Meow( ), 148, 153
new( ), 694
overloading, 118-121, 387
example, 289-292
when to use, 294
overriding, 385-387
p( ), 653
parameters, 36, 101, 113
peek( ), 611-612
pointers
advantages, 517-520
arrays, 521-523
assigning, 517
declaring, 514
dereferencing, 520
example, 514-517
passing, 523-525
typedef statement,
525-528
polymorphism, 11,
118-121
pop_back( ), 700
pop_front( ), 702
printf( ), 620-622,
635-636
prototypes, 101-104,
267-268
push_back( ), 695
push_front( ), 702
put( ), 613-614
putback( ), 611-612, 635
recursion, 124-128
remove( ), 700
resolving by name,
638-642
return values, 36, 100-101,
114-115
returning multiple values
pointers, 268-270
references, 270-271
SetAge( ), 153, 241
setf( ), 617-620
SetFirstName( ), 544
SetLastName( ), 544
ShowMap, 707
ShowVector( ), 699
sizeof( ), 45
sizes, 112
statements, 112
static member functions,
511-513, 534
strcpy( ), 435
strncpy( ), 435-436
swap( ), 110
pointers, 264-265
references, 265-267
syntax, 27
template functions,
669-670, 683-688
virtual, 404, 487
destructors, 488
pure virtual functions,
477-482
width( ), 615-616
write( ), 614-615
G
general template friends,
674-678
generalization (domain
models), 341
get( ) method, 434
character arrays, 607-608
character reference
parameters, 606
overloading, 610
with no parameters,
604-606
GetAge( ) function, 153, 241
GetArea( ) function, 169
GetCount( ) function, 500
GetFirst( ) function, 500
getline( ) method, 608-610
GetString( ) function, 443,
544
GetUpperLeft( ) function,
169
GetWeight( ) function, 164
GetWord( ) function, 425
global variables
example, 110-112
limitations, 112, 134
goto statement, 176-177
greater than operator (>),
80
greater than or equal to
operator (>=), 80
guidelines (use cases),
344-346
H
.h filename extension, 163
has-a relationships.
Seecontainment
headers
functions, 36, 267-268
namespaces, 645
heap. Seefree store
Hello World program
compiling, 17-18
creating, 19-20
896 functions
34 0672327112 index.qxd 11/19/04 12:31 PM Page 896