|
I tried -_-"
|
|
2009-12-10, 07:07 PM
The problem is that you didn't use a new deck of card each time during the new game.
so your takeCard function will repeatly generate the numbers that's already taken (control=0) Horusmaster Wrote:and after that cards[iRandomNum]=0 meaning you mark that number=0, after a few rounds all 52 cards are taken. So your program will go through an infinite loop of trying to generate a number that's not taken, but it never will. WOOPS LMAO. I mean to make it if(dealerHand <= 21 && dealerHand> hand) I'm glad you caught that XD Edit- It's actually just C, not C++ |
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)

