Ok, so I have the data type'card' created :
typedef enum suit
{
Club, Spade, Heart, Diamond
} Suit;
typedef enum rank
{
Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King, Ace
} Rank ;
struct card
{
Suit c_suit;
Rank c_rank;
} Card;
But now I need to create a deck of cards that can support any number of cards(52,104, 156, etc..). I'm not sure how to do this but I need it for my shuffle function to work.
What I have tried:
struct deck
{
Card * 52;
} Deck;
But 100% not rigt