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");
}
当我编译类似的东西时,编译器给了我错误:函数'play'的隐式声明和警告:'menu'可能在这个函数中未初始化使用。我该如何解决这些问题?