< Previous | Contents | Next >

B

badSwap() function, 193194,

236237

base class

constructors, 343344, 379

destructors, 379

member functions, 340346 base class constructors,

343344

calling, 345346

declaring virtual, 344 Overriding Boss program,

341343

overriding virtual, 344345

pointers, 350351

begin()vector member function, 127, 135

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

block, 8, 37

body of function, 8

bool fullScreen parameter, 171

bool IsBusted() const member, BlackJack GenericPlayer class, 359

bool m_IsFaceUp member,

BlackJack Card class, 359

bool type, 18, 19tbl, 3738

bool variables, 39, 78

Boole, George, 38

Boolean variables, 22

bounds checking, 93,

100101, 111

branching, 4054

if statement, 4051

with else clauses, 4551 nesting, 4445

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

4243

switch statement, 5154 creating ways to branch, 54 Menu Chooser program,

5253

break statement, 79, 111

exiting loop, 60

Finicky Counter program, 5860

loops, 77

switch statement and, 51 understanding when to use, 61 while (true) loop, 60

busting, BlackJack, 356