typedef enum
{
HEARTS = 0,
SPADES,
DIAMONDS,
CLUBS
}Suits; //here HEARTS = 0, SPADES = 1, DIAMONDS = 2, and CLUBS = 3
int main()
{
Suits hand;
play(hand);
return 0;
}
void play(Suits hand)
{
printf("Testing.\n");
}
When I compile something similar to this, the compiler gives me the error: implicit declaration of function 'play' and warning: 'menu' may be used uninitialized in this function. How can I fix these problems?