C# 枚举
https://blog.csdn.net/qq_45096273/article/details/106618543
using System;
using System.Text;
public class testStructure{
enum Sss{
吃饭,
睡觉,
打豆豆,
打游戏,
看电影,
三国杀
}
public static void Main(string[] args){
Console.WriteLine("这是将整数转换为枚举: {0}", (Sss)1);
Console.ReadLine();
Console.WriteLine("这是将整数转换为枚举: {0}", (Sss)2);
Console.ReadLine();
Console.WriteLine("这是将整数转换为枚举: {0}", (Sss)3);
Console.ReadLine();
Console.WriteLine("这是将整数转换为枚举: {0}", (Sss)4);
Console.ReadLine();
Console.WriteLine("这是将整数转换为枚举: {0}", (Sss)5);
Console.ReadLine();
}
}