两种方法:1、告诉他你要多大的数组int[] arr=new int[100];//100就是数组的长度2、不告诉他有多大,直接告诉他数据组都有什么值int[] arr =new int[]{1,2,3,4,5,6,7,8,9};或者 int[] arr={1,2,3,4,5,6,7,8};扩展资料:常用的数组方法using System;using System.Collections;public abstract class Array : ICloneable, IList, ICol...
|