i dont understand why this is an undeclared identifier can anyone help me the hearts, diamonds, clubs, spades is said to be the undeclared identifier
string Card::cardSuits[] = {hearts, diamonds, clubs, spades};
char *hearts = "\x03";
char *diamonds = "\x04";
char *clubs = "\x05";
char *spades = "\x06";
Because you haven't defined them until after you tried to use them.