抽奖注册
2018-12-27 本文已影响0人
BlingBling007
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine("*****欢迎进入奖客富翁系统*****"); Console.WriteLine(@" 1.注册 2.登录 3.抽奖"); Console.WriteLine("**************************"); Console.Write("请选择:"); string str_num = Console.ReadLine(); try { int num = Convert.ToInt32(str_num); switch (num) { case 1: Console.WriteLine("奖客富翁系统>注册"); break;case 2: Console.WriteLine("奖客富翁系统>登录"); break; case 3: Console.WriteLine("奖客富翁系统>抽奖"); break; } } catch { Console.WriteLine("你输入的编号有误,程序退出,请重新启动运行程序"); } Console.ReadKey(); } } }