I'm a beginner so please keep it simple.
Anyway, I have a struct defined like so:
struct card
{
char rank[10];
char suit[10];
char color;
bool dealt;
char location[10];
};
and I have a function that is passed this type of struct:
void importCard(card deck[52]);
The problem is, if I define the struct in main(), then the compiler does not know what "card" is at the time of function declaration (above main). How do I get around this without defining the struct as a global?