C#中有两种数组:Array和ArrayList。
其中Array是一般的数组,不能动态改变;ArrayList是动态数组,你可以通过Add方法添加元素,数组自动扩容(增加)。
请参看:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemCollectionsArrayListClassTopic.asp
其中Array是一般的数组,不能动态改变;ArrayList是动态数组,你可以通过Add方法添加元素,数组自动扩容(增加)。
请参看:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemCollectionsArrayListClassTopic.asp
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货