1 #include <iostream> 2 using namespace std; 3 enum weekday{sunday,monday,tuesday,wednesday,thursday,friday,saturday 4 }; 5 int main() 6 { 7 int i; 8 weekday d=thursday; 9 cout<<"d="<<d<<endl; 10 i=d; 11 cout<<"i="<<i<<endl; 12 d=(weekday) 6; 13 cout<<"d="<<d<<endl; 14 d=weekday(4); 15 cout<<"d="<<d<<endl; 16 }
标签:22,int,thursday,C++,课后练习,weekday From: https://www.cnblogs.com/Lyh3012648079/p/17360369.html