#编码
Console.WriteLine("欢迎进入魔法师迷你游戏平台");
Console.WriteLine("请选择您喜爱的游戏:");
Console.WriteLine("******************");
Console.WriteLine(@" 1.斗地主 2.斗牛 3.泡泡龙 4.连连看");
Console.WriteLine("******************");
Console.Write("请选择:");
string str_a = Console.ReadLine();
try { int a = Convert.ToInt32(str_a);
switch (a) { case 1: Console.WriteLine("进入斗地主");
break;
case 2:
Console.WriteLine("进入斗牛");
break;
case 3:
Console.WriteLine("进入泡泡龙");
break;
case 4:
Console.WriteLine("进入连连看");
break;
} }
catch
{ Console.WriteLine("错误,退出");
}
Console.ReadKey();