As we extract this file, we will be going through carddeck.c to find the relevant bits. Take the following steps:
- Create and open the card.h header file, and put in the following new lines:
This is our starting point for this header file. We use the macro directives, as explained earlier, to ensure that anything in this file is only preprocessed once. The _CARD_H_macro is used nowhere else in the program but in this single header file. Everything else that we put in this file will be after #define _CARD_H_ and before #endif.
Next, we would normally add the necessary header files. We will save this for later when we finish the dealer.c and dealer.h files.
- In carddeck.c, you now should see a number of const int definitions. The only ones of these that pertain to the Card structure are kCardsInSuit, kWildCard, and kNotWildCard. Rather than...