day 3 C#打卡
1.定义一个枚举型,输出今天是周几
using System;
namespace ConsoleApp10
{
enum oneofweek
{
monday=1,tuesday,wednesday,thursday,friday,saturday,sunday
}
class Program
{
static void Main(string[] args)
{
oneofweek Week;
Console.WriteLine("请输入今天是周几:");
int a = int.Parse(Console.ReadLine());
switch (a)
{
case (int)oneofweek.sunday:
Week = oneofweek.sunday;
Console.WriteLine("今天是周日,还可以再赖会儿床");
break;
case (int)oneofweek.monday<