カードデッキに額面とスーツのカード構造を記入しようとすると、上記。誰かが私が間違ってやっていることについて何か提案がありますか?私のfillDeck関数が "char *に互換性のないタイプのconst char *"を割り当てる理由が混乱しています
#include <iostream>
#include <cstdlib>
#include <ctime>
#define CARDS 52
#define FACES 13
#define SUITS 4
using namespace std;
typedef struct card
{
char * face;
char * suit;
}Card;
void fillDeck(Card * const wDeck, const char *wFace[], const char *wSuit[]);
void shuffle(Card * const wDeck);
void deal(const Card * const wDeck);
int main(void)
{
Card deck [CARDS];
const char * face[] = {"Ace", "Two", "Three", "Four", "Five",
"Six", "Seven", "Eight", "Nine", "Ten",
"Jack", "Queen", "King"};
const char * suit[] = {"Hearts", "Diamonds", "Clubs", "Spades"};
srand(time(NULL));
fillDeck(deck, face, suit);
shuffle(deck);
deal(deck);
}
void fillDeck(Card * wDeck, const char * wFace[], const char * wSuit[])
{
int i;
for (i = 0; i< CARDS; i++)
{
wDeck[i].face = wFace[i % FACES];
wDeck[i].suit = wSuit[i/FACES];
}
}