2018-12-27(1)

try { Console.WriteLine("*****欢迎进入奖客富翁系统*****"); Console .WriteLine ("1:注册\n 2:登录\n 3:抽奖\n"); Console .WriteLine ("*****************************"); Console .WriteLine ("请选择菜单:"); int a; a = Convert.ToInt32(Console.ReadLine()); switch (a) { case 1: Console .WriteLine ("[奖客富翁系统]>注册"); break ; case 2: Console .WriteLine ("[奖客富翁系统]>登录"); break ; case 3: Console .WriteLine("[奖客富翁系统]>抽奖"); break ; default : Console .WriteLine ("您的输入有误"); break ; } } catch { Console.WriteLine("您的输入有误"); }Console .ReadKey (); } } }

你可能感兴趣的:(2018-12-27(1))