Hi. I posted yesterday, but didn't get a good enough idea of how to proceed. I have four classes in a card game: Card, Deck, Player, and Game. The Card class is as follows:
Class Deck should not have a private section, or any data members.
The code for the last two classes is:
There are a few things that I am having difficulty with. As someone suggested yesterday (I haven't posted to forums such as these for a while), I try to ask one question at a time.
I'm not sure how to get a new randomly drawn card to show up.
I am given the following to put into the Main function:
My shuffle() member function looks like this:
srand( (unsigned)time( NULL ) );
Now, I am not sure where to go from here. I was thinking of trying to incorporate the accessor functions in Card, to set a new number each time. I'm puzzled though. Thanks in advance for any suggestions. Steve
return rand() % 10;