枚举类型
enum 枚举类型的名字{标识符列表};
//enum WeekDay{
//Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
//};
enum HeroType{
Master,Soldier,Assassin,Tnak
};
int main()
{
/*int weekday=1;
WeekDay day=Friday;
cout<<day<<endl;
int heroType=1;//1 法师 2 战士 3 刺客 4 坦克*/
HeroType heroType=Assassin;
heroType=Tank;
if(heroType==Master){
cout<<"This is Master."<<endl;
}
return 0;
}