标签:clu 枚举 style mon include 选择 family main 变量
#include<stdio.h>
#include<stdlib.h>
enum
WeekDay{
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
};
main(){
//枚举,规定变量取值范围只能从预先定义好的值中选择
enum WeekDay day = Sunday;
printf("%d\n",day);
}
标签:clu 枚举 style mon include 选择 family main 变量
原文地址:http://www.cnblogs.com/loaderman/p/6415542.html