标签:names 枚举类 模板 eve games failed space name key
/*
* 由SharpDevelop创建。
* 用户: Administrator
* 日期: 2018/10/12
* 时间: 20:53
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using System;
namespace lianxi10{
enum GameState{
Pause,
Failed,
Success,
Start
}
class Program
{
public static void Main(string[] args)
{
//GameState start=GameState.Start;
//if(start==GameState.Start){
//Console.WriteLine("当前处于游戏开始状态");
//}
//int state=3;
//if(state==3){
//Console.WriteLine("当前处于游戏开始状态");
//}
GameState state=GameState.Start;
int num =(int)state;
Console.WriteLine(num);
// TODO: Implement Functionality Here
Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
}
}
}
标签:names 枚举类 模板 eve games failed space name key
原文地址:https://www.cnblogs.com/llhhcc/p/9795098.html