CPlusPlusThings/practical_exercises/10_day_practice/day2/枚举类型.cpp
Light-City a4d828bb4c update
2020-04-06 00:57:02 +08:00

22 lines
334 B
C++

#include<iostream>
using namespace std;
enum weekday
{
s,m,t,w,thu,f,s1
};
int main(int argc, char const *argv[])
{
enum weekday wek=s;
// weekday wek=s;
for(int i=wek;i!=f;i++)
{
cout<<i<<endl;
cout<<wek+s<<endl;
cout<<"-------¹þ¹þ-------"<<endl;
}
system("pause");
return 0;
}