#include<stdio.h>
enum Weekday {sun,mon,tus,wed,thu,fri,sat} w1,w2;
int main()
{
//enum Weekday w;
w1 = mon;
w2 = tus;
if(w1 < tus)
{
printf("haha\n");
}
printf("w1 = %d\n",w1);
printf("w2 = %d\n",w2);
return 0;
}
枚举enum类型
最新推荐文章于 2024-08-31 17:45:06 发布