摘要: 此处复制一串以空格分隔的数字,提取数字进行排序 int[] a = new int[10]; string input = Console.ReadLine();//获取用户输入的字符串 char[] chs = { ' ' };//分隔类型--空格 string[] arr = input.Spl 阅读全文
posted @ 2020-02-28 02:44 Kai_YoungMaster 阅读(2546) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/ysz12300/p/5595907.html 引入ArryList的方法->命名空间:using System.Collections; ArrayList即动态数组(可变数组),它可以动态的增加和减少元素,另外它可以存储任意个数和任意类型的元素 阅读全文
posted @ 2020-02-28 00:55 Kai_YoungMaster 阅读(497) 评论(0) 推荐(0) 编辑