Code:
int main()
{
const char *suit[ 4 ] =
{ "Hearts" , "Diamonds" , "Clubs" , "Spades" };
const char *face[ 13 ] =
{"Ace", "Deuce" , "Three", "Four",
"Five", "Six", "Seven", "Eight",
"Nine", "Ten", "Jack", "Queen", "King" };
int deck [ 4 ] [ 13 ] = { 0 };
This is where I initialize my const char *face. So naturally, I wanted to initialize the card1, card2... etc. in the same way so that they wouldn't have a compatability issue. So I initialized card1, and so on like:
Code:
const char *card1;
const char *card2;
const char *card3;
const char *card4;
const char *card5;
and it still says that it has an error when trying to compare them like so:
Code:
card1 = wFace[column];
Any ideas?