[操作疑難] C# array入資料

string[][] strItem = new string[][] {
   new string[] {"user", "tom"},
   new string[] {"year", "2012"},
   new string[] {"month", "5"}
};

想問有冇人知道點先可以分開3次入data落個array度, 而唔係1次過入晒呢?

string[][] strItem = new string[][] {
   new string[] {"user", "tom"},
   new string[] {"year", "20 ...
hongkong_netcop 發表於 2012-5-30 16:53


已解決
string[][] strItem = new string[3][];
strItem[0] = new string[] { "user", "ec6151" };
strItem[1] = new string[] { "year", "2012" };
strItem[2] = new string[] { "month", "5" };

TOP