C语言详解

时间:2017-10-06 10:42

typedef enum workday
{
    saturday,
    sunday 
= 0,
    monday,
    tuesday,
    wednesday,
    thursday,
    friday
};

workday today, tomorrow; 
//变量today和tomorrow的类型为枚举型workday,也即enum workday