摘要: 数组:一次性定义固定长度一组数据 定义数组: 数据类型 [] 数组名 = new 数据类型 [个数] ; 例如 int [] arr = new int [5] ; 二维数组: int[,] erwei = new int[2, 5] 代表2个长度为5的数组 { { 2, 3, 4, 5, 6 }, 阅读全文
posted @ 2016-03-31 16:51 周帝 阅读(220) 评论(0) 推荐(0) 编辑
摘要: //输入N个人的分数,按从高到低进行排序 Console.Write("请输入人数"); int n = int.Parse(Console.ReadLine()); int[] arr = new int[n]; for (int i = 0; i < n;i++ ) { Console.Writ 阅读全文
posted @ 2016-03-31 16:38 周帝 阅读(751) 评论(0) 推荐(0) 编辑