public static void Main()
string[,] name=new string[5,3]
{"A1噴香口水雞","A2椒香秋葵"," A3湘式剁椒腐竹"},
{"B1桂花蜜芋頭","B2醬燒海帶根","B3冰鎮梅汁苦瓜"},
{"C1涼拌黃瓜"," C2醋拌大頭菜","C3紅油耳絲"},
{"D1清蒸樹子魚","D2招牌胡椒蝦","D3時時香醬爆蝦"},
{"E1鳳梨鮮蝦球","E2秋葵蝦粒"," E3無敵豆酥嫩魚"}
string A1=name[0,0]; string A2=name[0,1]; string A3=name[0,2];
string B1=name[1,0]; string B2=name[1,1]; string B3=name[1,2];
string C1=name[2,0]; string C2=name[2,1]; string C3=name[2,2];
string D1=name[3,0]; string D2=name[3,1]; string D3=name[3,2];
string E1=name[4,0]; string E2=name[4,1]; string E3=name[4,2];
Console.Write("請輸入(要點餐請按0,按9離開):");
choice=Convert.ToInt16(Console.ReadLine());
Console.Write("請輸入管理密碼:");
password=Console.ReadLine();
if(!(password=="123456"))
Console.WriteLine("密碼錯誤");
Console.WriteLine("----------------------------------------------");
Console.WriteLine("###############");
Console.WriteLine("銘傳餐廳點餐系統");
Console.WriteLine("***************");
Console.WriteLine("----------------------------------------------");
Console.WriteLine(" 第一欄 第二欄 第三欄");
Console.Write("第"+(i+1)+"排");
Console.Write(name[i,j]);
Console.WriteLine("請選擇你要的餐點?");
Console.WriteLine("你點了噴香口水雞");
Console.WriteLine("你點了椒香秋葵");
Console.WriteLine("你點了湘式剁椒腐竹");
Console.WriteLine("你點了桂花蜜芋頭");
Console.WriteLine("你點了醬燒海帶根");
Console.WriteLine("你點了冰鎮梅汁苦瓜");
Console.WriteLine("你點了涼拌黃瓜");
Console.WriteLine("你點了醋拌大頭菜");
Console.WriteLine("你點了紅油耳絲");
Console.WriteLine("你點了清蒸樹子魚");
Console.WriteLine("你點了招牌胡椒蝦");
Console.WriteLine("你點了時時香醬爆蝦");
Console.WriteLine("你點了鳳梨鮮蝦球");
Console.WriteLine("你點了秋葵蝦粒");
Console.WriteLine("你點了無敵豆酥嫩魚");
Console.WriteLine("無此餐點");
Console.WriteLine("請問您要點幾份?");
Console.WriteLine("謝謝,您點了"+menu+"餐點,總計"+q+"份。");
Console.WriteLine("----------------------------------------------");
Console.WriteLine("查無此人");