110,539
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections;
enum Color:short
{
Red,
Yellow, Blue, Green, Purple, Black, White
};
class Test
{
static void Main(string [] args)
{
for (int i = 0; i < 7; i++)
{
Console.WriteLine("The value of color[0] is:{0}", ((Color)i).ToString());
}
Console.ReadLine();
}
}