C#中的枚举类型问题?
enum orientation : byte{
north = 1,
south = 2,
east = 3,
west = 4
}
请问在这里 north 是什么 1 又是什么? 谢谢
2007-02-08 13:19
2007-02-08 13:45
我觉得 north应该是 常数1的一个标识~~~~~
2007-02-08 14:01
2007-02-08 14:59
谢谢
2007-02-08 19:31
north是变量,1则是值,如果前面再加上const 就常数了,也就是固定值了喔
2007-03-17 10:59
2007-08-01 16:30