It looks quite good for one of your first projects. May I ask why you're allocating Deck on the heap?
There are cases where switch can be used instead of many ifs: bool Player::getHand(), string Card::getCardNumber() and string Card::getCardType().
Finally a reason to use QuickFire.
...
[QUOTE=newbz;29056817]I don't know. It didn't work when I called Deck myDeck() and that seemed to fix the problem :downs:;[/QUOTE]
wait, what? "it didn't work"? what didn't work?
[QUOTE=newbz;29056817]I don't know. It didn't work when I called Deck myDeck() and that seemed to fix the problem :downs:;
switch can be used for string Card::getCardNumber() and string Card::getCardType(), but not for bool Player::getHand() because switches can only use integers or enumerated types and the only way to access the players card number is to call _hand[ii].getCardNumber() which returns a string.[/QUOTE]
Deck myDeck(); is a function prototype.
Deck myDeck; is an object.
...
...
...
I just drew a joker of hearts. I've never played blackjack before, but I don't think there are jokers in the game.
Oh, the joker is the jack.
J stands for Jack not Joker.
Or you could rename your game to BlackJoker. :v:
-snip- wrong thread LOL
[QUOTE=binarybitz;29166457]I just drew a joker of hearts. I've never played blackjack before, but I don't think there are jokers in the game.
Oh, the joker is the jack.
J stands for Jack not Joker.
Or you could rename your game to BlackJoker. :v:[/QUOTE]
I guess you could say,
The jokes...on...
you?
you know
...
Sorry, you need to Log In to post a reply to this thread.