Go to the documentation of this file.
9 string clubs[] = {
"Joker",
"Ace",
"Two",
"Three",
10 "Four",
"Five",
"Six",
"Seven",
11 "Eight",
"Nine",
"Ten",
"Jack",
18 grabBag.
add(clubs[1]);
19 grabBag.
add(clubs[2]);
20 grabBag.
add(clubs[4]);
21 grabBag.
add(clubs[8]);
22 grabBag.
add(clubs[10]);
23 grabBag.
add(clubs[12]);
29 cout <<
"What is your guess?"
30 <<
"(1 for Ace to 13 for King):";
37 cout <<
"You get the card!\n";
38 grabBag.
remove(clubs[guess]);
42 cout <<
"Sorry, card was not in the bag.\n";
46 cout <<
"No more cards in the bag. Game over!\n";