eg:enum weekday { SUN,MON,TUE,WED,THU,FRI,SAT};weekday d1,d2,d3; //定义三个枚举变量 d1=SUN; //right d2=6; //wrong d3=(weekday)6; //right 进行了强制类型转换