摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2019-01-28 16:31
豆皮没有豆
阅读(246)
评论(0)
推荐(0)
摘要:
while (true) { Random r = new Random(); int[] array = new int[8]; int[] arr = new int[4]; for (int i = 0; i < arr.Length; i++) { arr[i] = r.Next(1,21) 阅读全文
posted @ 2019-01-28 16:20
豆皮没有豆
阅读(280)
评论(0)
推荐(0)
摘要:
口诀: N 个数字来排队,两两相比小靠前。 外层循环 N-1,内层循环 N-1-i。 案例:定义一个数组,输出后从大到小排列 using System; using System.Collections.Generic; using System.Linq; using System.Text; 阅读全文
posted @ 2019-01-28 16:11
豆皮没有豆
阅读(329)
评论(0)
推荐(0)
摘要:
注:以下代码皆在控制台输出(控制台应用程序) 数组 数组是一个存储相同类型元素的固定大小的顺序集合。数组是用来存储数据的集合,通常认为数组是一个同一类型变量的集合。 初始化数组 声明一个数组不会在内存中初始化数组。当初始化数组变量时,您可以赋值给数组。数组是一个引用类型,所以您需要使用 new 关键 阅读全文
posted @ 2019-01-28 16:07
豆皮没有豆
阅读(1929)
评论(0)
推荐(0)
浙公网安备 33010602011771号