< Previous | Contents | Next >
false values
find() algorithm, 134
find() member function, 94–95 Finicky Counter program,
counting with, 84–85 defining variables inside, 166 nesting, 86–87
using empty statements in, 85 FORTRAN language, 112 forward slash (/), 14
free store, 296, 325. See also heap freeing memory, 300
Friend Critter program, 292–294
Friend Critter program, 292–294
functions, 8, 35, 151–186
abstraction, 155 accepting values into
parameters, 158–160
calling, 70, 154 calling with default
default arguments, 171–174 assigning to parameters,
Give Me a Number program, 171–172
hiding, 169 minimizing use of, 170
Taking Damage program, 177–179
Instructions program, 152–153 Mad Lib game, 180–183
askNumber()function, 182
askText()function, 182
tellStory()function, 183
return statement, 158 specifying return type, 157 using, 158
Tic-Tac-Toe game, 206tbl Yes or No program, 155–157