#include<stdio.h>
void main()
{ enum season {spring=1,summer,autumn,winter}s;
for(s=spring;s<=winter;s++)
printf("%d\n",s);
}
本文出自 “努力奋斗,互相提高” 博客,请务必保留此出处http://c10086.blog.51cto.com/6433044/1413760
编程题:枚举元素的判断比较,功能:枚举变量作为循环控制变量,布布扣,bubuko.com
原文:http://c10086.blog.51cto.com/6433044/1413760