Hey everybody, I am trying to initialize a deck of cards using a structured data type. Here is the currently relevant portions of the code:
struct ACard
{
int Num;
char Pic;
};
void InitiateCard(ACard Card[])
{
for (int i =0; i < 13; i++)
{
Card[i].Num = i;
Card[i].Pic = 3;
}
}
Using the above, I can get a first full suite of cards (0-13, of hearts). However, im not exactly sure how to proceed with the rest of the deck. I know it involves using at least one more For loop but am uncertain how to proceed.
Basically I need 4 more sets of Num 0-13 for the corresponding 4,5, and 6 for the Pic.
Thanks!