try
?{
?Console.WriteLine("魔導(dǎo)師獎勵系統(tǒng)>注冊");
Console.Write("繼續(xù)選擇嗎?");//提示用戶選擇
?string b;
?b = Console.ReadLine();
if (b == "y")
{
?try
{
?Console.WriteLine("****************歡迎您進(jìn)入魔導(dǎo)師獎勵系統(tǒng)***********************"); Console.WriteLine("1.注冊 2.登錄 3.抽獎 ");
?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;
?}//switch
?} catch
?{
Console.WriteLine("你輸入的格式有誤");
?}
} else if (b == "n")
{
Console.WriteLine("系統(tǒng)退出,謝謝使用");
?} else
?{
Console.WriteLine("輸入有誤");
?} Console.ReadKey();
Console.ReadKey();
?}?catch
{
Console.WriteLine("你輸入的格式錯誤");
?}
Console.ReadKey();