< Previous | Contents | Next >

I

IDE (Integrated Development Environment), 34

identifier, 20, 31

if statements, 3945

defining variables inside, 166 with else clauses, 4851

creating sequence of, 5051 Score Rater 3.0 program,

4950

nesting, 4445

relational operators, 44 Score Rater program, 4142 true and false values

interpreting, 43

testing, 4243

increment operator (þþ), 2728

indexing

arrays, 99100 multidimensional arrays,

105106

string objects, 93

vectors, 121

infinite loop, 58, 7879

inheritance, 331346, 356380

base class member functions, 340346

calling, 345346 calling base class constructors,

343344

declaring virtual, 344 Overriding Boss program,

341343

overriding virtual, 344345

Blackjack game, 356379

Card class, 361363

Deck class, 370373

designing classes, 356360

Game class, 373376

GenericPlayer class, 366367

Hand class, 363366

House class, 369370

main() function, 376377 overloading the

operator()

function, 377379 planning game logic,

360361

Player class, 368369 controlling access under,

337340

access modifiers, 339340 Simple Boss 2.0 program,

338339

deriving from base classes, 335336

inherited members, 337 instantiating objects from

derived classes, 336337 overloaded assignment

operators and copy constructors, 346347

Simple Boss program, 333335

initialization statement, for

loop, 82

initializer list, 99 initializing

constant pointer, 231

pointers, 227, 250

references, 189

static data members, 272 variables, 22

inlining functions, 177180, 268,

282

calling inlined functions, 179180

specifying functions for, 179 Taking Damage program,

177179

inner loop, 8687

insert()vector member function, 130

instances, class, 259

instantiating objects, 259, 263

instructions() function

Mad Lib game, 154 Tic-Tac-Toe game, 208

Instructions program, 152153

int type, 18, 19tbl, 112

int argument, 175

int GetTotal() const member,

BlackJack Hand class, 359

int GetValue() member,

BlackJack Card class, 359 integer division, 1415

integer variables, 21 integer wrap around, 26,

2829

integers, 14, 78 Integrated Development

Environment (IDE), 34

intOnHeap() function, 300 Inventory Displayer program,

195196

Inventory Pointer program, 239240

iostream file, 89, 36

isLegal()function, Tic-Tac-Toe game, 212213

ISO standard, 5

iterating through string objects, 9394

iterators, 123131

accessing member functions of vector element, 129130

changing value of vector element, 128129

declaring, 125126

defined, 116, 146

erase()vector member function, 130131

Hero's Inventory 3.0 program, 123125

insert()vector member function, 130

Index 405


looping through vector, 126128 altering an iterator, 128 calling begin()vector

member function, 127 calling end()vector

member function, 127128

dereferencing an iterator, 128

vector member functions and, 147