枚举
摘要:
namespace ConsoleApplication2{ enum orientation : byte { north=1, south=2, east=3, west=4 } class Program { static void Main(string[] args) { byte directionByte; string directionString; orientation myDirection = orientation.north; Console.WriteLine("myDirection={0}", myDirection); directionByte = (b 阅读全文
posted @ 2011-01-20 08:16 i617 阅读(473) 评论(0) 推荐(0)
浙公网安备 33010602011771号