那个c#数组排序中,那个aa是怎么定义的啊

[复制链接]
查看11 | 回复1 | 2011-3-9 18:08:11 | 显示全部楼层 |阅读模式
//main主方法static void Main(string[] args) { //定义了一个叫arr1数组的变量并赋值int[] arr1 = new int[] ; //遍历数组中的所有元素;跟for循环差不多.foreach (int n in arr1) //循环打印出元素Console.Write(n+" "); //打印一个空行,也就是换行;Console.WriteLine(); //定义两个变量;int j, temp; //遍历数组中的元素,lengt-1是因为数组的下标从0开始,。所以长度必须减1。for (int i = 0; i < arr1.Length ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行