[求助]请教C#枚举类型的问题
最近才开始学习C#,遇到了枚举类型的一些问题请教一下大家下面是程序,我不太理解.
Using System;
enum Weekday{
Sunday,Monday,Tuesday,Wendesday,Thursday,Friday,Saturday
};
Class Test
{
public static void Main(){
Weekday day1=Weekday.Sunday;
Weekday day2=Weekday.Saturday;
Weekday day3=day1+6;
Console.WriteLine(day1);
Console.WriteLine(day2);
Console.WriteLine(day3);
}
}
为什么输出的结果是0 6 6
[此贴子已经被作者于2006-7-5 16:47:38编辑过]