作者luyaochu (kuyaochu)
看板C_Sharp
标题[问题] 请问一个方向
时间Mon Jun 16 23:50:26 2008
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
1F:→ luyaochu:小弟还没打完 晚一点上来补打 谢谢 06/16 23:51
2F:推 tomex:用文字说明自己想法,再问方向 06/17 20:31