using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleEnum
{
class Program
{
enum WeekDay{sunday,monday,tuesday,wedsday,thursday,friday,saturday}
static void Main(string[] args)
{
Console.WriteLine("请输入0~6之间的整数");
int num = int.Parse(Console.ReadLine());
WeekDay day=(WeekDay)num;
Console.WriteLine("Today is {0}.",day );
Console.ReadLine();
}
}
}
这段程序是什么功能?