< Previous | Contents | Next >
B
base class
member functions, 340–346 base class constructors,
declaring virtual, 344 Overriding Boss program,
begin()vector member function, 127, 135
Game class, 373–376 GenericPlayer class, 366–367 Hand class, 363–366
main() function, 376–377 overloading the operator()
function, 377–379 planning game logic, 360–361 Player class, 368–369
bool fullScreen parameter, 171
bool IsBusted() const member, BlackJack GenericPlayer class, 359
bool m_IsFaceUp member,
BlackJack Card class, 359
bool variables, 39, 78
bounds checking, 93,
if statement, 40–51
with else clauses, 45–51 nesting, 44–45
relational operators, 44 Score Rater program, 41–42 true and false values,
switch statement, 51–54 creating ways to branch, 54 Menu Chooser program,
break statement, 79, 111
Finicky Counter program, 58–60
switch statement and, 51 understanding when to use, 61 while (true) loop, 60