声明枚举变量并赋值: enum Season currentSeason = SUMMER; 复制代码 使用枚举变量: if(currentSeason == SPRING){ printf("It's springtime\n"); } else if(currentSeason == SUMMER){ printf("It's summertime\n"); } else if(currentSeason == AUTUMN){ printf("It's autumntime\n"); } else ...