void标签:summer,winter,spring,enum,OC,枚举,Season,定义 From: https://blog.51cto.com/u_15907570/5925319
// 定义一种枚举类型
enum
// 定义一个枚举变量s
enum Season s = winter;
}
void
// 定义枚举类型的同时定义一个枚举变量s
enum Season {spring, summer, autumn, winter} s = spring;
}
void
enum {spring = 3, summer, autumn, winter} s = winter;
printf("%d", s);
}