C#定义定义数组的几种形式

来源:互联网 发布:网络教育 统考 编辑:程序博客网 时间:2024/05/16 02:25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace linq
{
    class Program
    {
        static void Main(string[] args)
        {
        }


        public void linq1()
        {
            int[] num;
            num=new int[]{1,1,1,1,1};
            int[] num1 = new int[]{ 1,1,1,1};
            int[] num2 ={ 1,1,1,1};
            int []num3=new int [5]{1,1,1,1,1};
        }
    }
}
原创粉丝点击