ylbtech-Arithmetic:Console- |
1.A,案例 |
运算原理有点复杂,不懂。啊!求解释?
1.B,解决方案 |
using System; namespace ConsoleApplication4 { enum Team {my,your=4,his,her=his+10 } class Program { /// <summary> /// 运行结果是:0,4,5,15 /// </summary> /// <param name="args"></param> static void Main(string[] args) { int i = 0; //i++; Console.WriteLine("{0},{1},{2},{3}",(int)Team.my,(int)Team.your,(int)Team.his,(int)Team.her); } } }
1.C,运行结果 |
0,4,5,15
本文转自ylbtech博客园博客,原文链接:http://www.cnblogs.com/ylbtech/archive/2013/03/22/2975941.html,如需转载请自行联系原作者