看板 C_Sharp 關於我們 聯絡資訊
namespace Application { //The DataObject class stored with a key Class DataObject { //Populate } class Program { static Hashtable Dtat = new Hashtable(); stat string[] staticData = new string[] { "X-Ray", "Echo", "Alpha" }; static void Main (string[] args) { for(int i=0; StaticData.Length; i++) Data.Add(StaticData[i].ToLower(), new DataObject(StataicData[i])); while(true) { PrinSortedData(); Console.WriteLine(); Console.Write(">"); string str = Console.ReadLine(); string[] strs = str.Split(' '); if(strs[0]=='q') break; else if(strs[0]=="print") PrintSortedData(); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 66.14.254.3
luyaochu:小弟還沒打完 晚一點上來補打 謝謝 06/16 23:51
tomex:用文字說明自己想法,再問方向 06/17 20:31