Class for a deck of cards
I want to write a class for a deck of cards, but I'm not really sure what the best way to go about it would be.
The way I looked at this was starting with each card first.
int Face; // 2-13
int Suit; // 1->Clubs 2->Diamonds 3->Hearts 4->Spades
void DispCard ();
Then I built a class to hold you deck which I haven't done yet, or you can simply declare an array of 52 cards to hold your deck.
Topic archived. No new replies allowed.