枚举实例测试:
#include<iostream>
usingnamespace std;
int main(){
enum days{one, two, three}day;
day = one;
switch(day){
case one:
cout <<"one"<< endl;
break;
case two:
cout <<"two"<< endl;
break;
default:
cout <<"three"<< endl;
break;
}
return0;
}