function header files,
267-268
object files, 15
opening for input/output,
624-626
source files, 14
text files, 629-631
writing classes to, 629-630
fill characters, 616-617
fill( ) method, 616-617
filling arrays, 433-434
filtering access to contained
classes, 545
Find( ) function, 500
finding memory addresses,
222-223
first in, first out (FIFO), 703
fixed flag, 618
flags, 618-620
flipping bits, 775
float data type, 46
floating-point variables, 46
flush( ) method, 613
flushing
buffers, 596
output, 613
for_each( ) algorithm,
709-710
for loops, 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
forever loops
exiting, 202
switch statement, 201-204
while (true), 183-184
form feeds, 58
formatting output, 622-623
flags, 617-620
width, 615-616
free store, 252
advantages, 233-234
data members
accessing, 239-241
pointers, 241-243
declaring arrays on, 426
deleting arrays from, 429
memory
allocating, 234
restoring, 235-237
objects
creating, 238
deleting, 238-239
storing arrays on, 421-423
freeing memory, 235-237
friend keyword, 585
friends, 670
friend classes, 571-572
declaring, 580
sample program
listing, 572-579
usage tips, 579
friend functions
declaring, 585
operator overloading,
580-585
friend keyword, 585
general template friends,
674-678
non-template friends,
670-674
front( ) function, 700
fstream classes, 597
FUNC.cpp file, 37-38
FunctionOne( ) function,
274
functions, 8, 36-37, 100.
See alsomacros; methods
accessor functions,
147-148
Add( ), 38, 313-314
Area( ), 104
arguments, 36, 101
defaults, 116-118
passing by reference,
262-265, 271-274
passing by value,
109-110, 134, 263-264
at( ), 700
back( ), 700
begin( ), 702
body, 36
built-in, 100
capacity( ), 695
compared to macros, 771
Compare( ), 881
Convert( ), 106
declaring, 101-105,
143-144, 162-163
default values, 292-294
delete( ), 694
Demonstration-
Function( ), 36
Display( ), 500
DoChange-Dimensions( ),
217
DoTaskOne( ), 204
Double( ), 123
Doubler( ), 115
DrawShape( ), 290-291
empty( ), 695
end( ), 702
executing, 105
Factor( ), 268-271
fib( ), 197
fill( ), 616-617
Find( ), 500
flush( ), 613
friend functions, 580-585
front( ), 700
FUNC.cpp example, 37-38
FunctionOne( ), 274
get( ), 434
character arrays,
607-608
character reference
parameters, 606
with no parameters,
604-606
overloading, 610
GetAge( ), 153, 241
GetArea( ), 169
GetCount( ), 500
GetFirst( ), 500
getline( ), 608-610
functions 895
How can we make this index more useful? Email us at [email protected]
34 0672327112 index.qxd 11/19/04 12:31 PM Page 895