作者eyes222 (不想开学哩!)
看板C_Sharp
标题[问题] ArrayList 和 Struct
时间Sat Apr 29 10:55:47 2006
请问 ArrayList 和 struct 要怎麽一起使用@@?
ex 我有一个名称为 cust 的 struct
里面存放了 姓名 性别 生日...等:
struct cust
{
public string name;
public DateTime birth;
public string sex;
}
我该如何宣告一个具有cust结构的ArrayList? (考试的时候当在那里了T___T)
谢谢喔^^
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 163.22.18.97
1F:推 tomex:arrayList.Add(new cust()); 04/29 17:06
2F:推 eyes222:不行耶QQ 04/30 11:10