Having extracted Card, Hand, and Deck declarations and functions, we can now finish the program. Take the following steps:
- Create and open the dealer.h header file and add the following new lines:
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "card.h"
#include "hand.h"
#include "deck.h"
Looking again through carddeck.c, we see that all that is left to be transferred to dealer.h are the standard library header files. We also created three header files for each of the three .c source files; we add them to this header file. Recall that we also included this header file in each of the three source files. Also, remember that we added #ifndef … #endif exclusion directives around each of those header files so that they will ever only be preprocessed once. This header file contains all of the...