< Previous | Contents | Next >

F

false values

interpreting, 43

testing, 4243

find() algorithm, 134

find() member function, 9495 Finicky Counter program,

5860

float type, 19tbl

floating points, 14, 21

for loops, 8187

Counter program, 8284

counting with, 8485 defining variables inside, 166 nesting, 8687

using empty statements in, 85 FORTRAN language, 112 forward slash (/), 14

free store, 296, 325. See also heap freeing memory, 300

Friend Critter program, 292294

friend functions, 325

creating, 295

Friend Critter program, 292294

function body, 154

function header, 154

function inlining, 184

functions, 8, 35, 151186

abstraction, 155 accepting values into

parameters, 158160

calling, 70, 154 calling with default

arguments, 173

declaring, 153, 183

default arguments, 171174 assigning to parameters,

173174

Give Me a Number program, 171172

overriding, 174

specifying, 173

defining, 154

encapsulation, 160

global constants, 170

global variables, 166170

accessing, 168

altering, 169

declaring, 168

Global Reach program, 166168

hiding, 169 minimizing use of, 170

inlining, 177180

calling, 179180

specifying, 179

Taking Damage program, 177179

Instructions program, 152153 Mad Lib game, 180183

askNumber()function, 182

askText()function, 182

main()function, 181182

setting up, 181

tellStory()function, 183

overloading, 174177, 184

calling, 177

creating, 176

Triple program, 174176

prototype, 153, 159

return values, 157158

return statement, 158 specifying return type, 157 using, 158

scopes, 161166

nested, 165166

Scoping program, 161163

separate, 163164

software reuse, 161

Tic-Tac-Toe game, 206tbl Yes or No program, 155157

fundamental types, 18