62,074
社区成员
发帖
与我相关
我的任务
分享
PieChartValue[] PieChartValue ={
new PieChartValue("第一个仓库",1),
new PieChartValue("第二个仓库",2),
new PieChartValue("第三个仓库",4)};
int[] a = { 1, 2, 3 };
int m = a.Length;//原来元素个数
int n = 6;//添加元素个数
Array.Resize<int>(ref a,n+m );//重新设置数组大小
for(int i=4,j=0;i<10;i++,j++)
{
a[m + j] = i;
}
foreach (int i in a)
{
Console.WriteLine(i);
}