/* * CS307 Assignment 1 * Card Game * Dan J. Fraser * */ #ifndef CARD_CLASS #define CARD_CLASS #define KING 13 #define ACE 1 #define JACK 11 #define QUEEN 12 class Card { private: int rank; /* The current rank of the card, from 1-13. 11 = jack, 12 = queen * 13 = king, 1 = ace */ int suit; /* The current suit of the card, a char where 'S' = spade, * 'H' = heart, 'C' = club, 'D' = diamond */ public: // constructor, create a new card given a rank and a suit. Card(int init_rank, char init_suit); // return the current rank of the card, see above for description int get_rank(void); // return the suit of the card, see above for description char get_suit(void); // cout the card's description in plain english void show(void); }; #endif