当我编译这段代码时,它给了我
“[错误] 未知类型名称‘天’”。我究竟做错了什么?
#include <stdio.h>
int main(void){
int k=0;
enum days {Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday};
days dayVariable;
printf("Enter number of the day: ");
scanf("%d",&k);
dayVariable=days(k);
printf("%s", dayVariable);
return 0;
}