[問題] 請問一個方向
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
→
06/16 23:51, , 1F
06/16 23:51, 1F
推
06/17 20:31, , 2F
06/17 20:31, 2F