今天看啥
热点:

数组的四种创建方法,数组四种创建方法


第一种:

string[] myArray = new string[10];

for(int i = 0; i<10;i++){

  myArray[i] = i+1;

}

第二种:

string[] myArray2 = {"1","2","3","4","5","6","7","8","9","10"};

第三种:

string[] myArray = new string[10]{"1","2","3","4","5","6","7","8","9","10"};

第四种:

string[] myArray = new string[]{"1","2","3","4","5","6","7","8","9","10"};

www.bkjia.comtruehttp://www.bkjia.com/Asp_Netjc/1284232.htmlTechArticle数组的四种创建方法,数组四种创建方法 第一种: string[] myArray = new string[10]; for(int i = 0; i10;i++){ myArray[i] = i+1; } 第二种: string[] myArray2 = {...

相关文章

    暂无相关文章
相关搜索:

帮客评论

视觉看点