title: I am confused why my fillDeck function says, "assigning to 'char *' from incompatible type 'const char *"
body: <p>When I try to fill my Card deck with card structures of the face value and suit I get the error that is above. Does anyone have any suggestions on what I am doing wrong?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;ctime&gt;
  #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&lt; CARDS; i++)
      {
          wDeck[i].face = wFace[i % FACES];
          wDeck[i].suit = wSuit[i / FACES];
      }
  }
  </code></pre>