摘要: Sort的IComparer我不会设置,以后的再搞。。。QAQ 1 using System; 2 using System.Collections; 3 4 namespace C_9_4 5 { 6 7 class Program 8 { 9 10 private static void Put 阅读全文
posted @ 2020-09-16 22:44 想活出点人样 阅读(242) 评论(0) 推荐(0) 编辑
摘要: LastIndexOf花了很长的时间才试出来是怎么回事,,, 有点长了,,, 1 using System; 2 using System.Collections; 3 4 namespace C_9_4 5 { 6 class Program 7 { 8 private static void t 阅读全文
posted @ 2020-09-15 22:52 想活出点人样 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections; 3 4 namespace C_9_4 5 { 6 class Program 7 { 8 private static void test_1(ArrayList b) 9 { 10 int i; 11 if 阅读全文
posted @ 2020-09-15 15:45 想活出点人样 阅读(273) 评论(0) 推荐(0) 编辑
摘要: CopyTo讲了三种方法 所以篇幅可能会比较长 1 static void Main(string[] args) 2 { 3 //ArrayList方法 4 5 //Add 6 //将对象添加到ArrayList的结尾处 7 int i, j, k; 8 ArrayList a = new Arr 阅读全文
posted @ 2020-09-12 15:11 想活出点人样 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections; 3 4 namespace C_9_4 5 { 6 class Program 7 { 8 9 static void Main(string[] args) 10 { 11 //ArrayList类 12 // 阅读全文
posted @ 2020-09-11 16:19 想活出点人样 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 1 static void Main(string[] args) 2 { 3 //Array.Find 4 //搜索与指定条件match相匹配的项,然后输出第一个匹配项 5 //Array.Find(Array1,match); 6 7 int i, j, k; 8 int[] a = new i 阅读全文
posted @ 2020-09-11 15:03 想活出点人样 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 有点多,试了很久才试出来的。 static void Main(string[] args) { //Array抽象基类或者叫抽象父类的学习 //Array 的类因为是抽象的,所以他是不能创建对象 //即Array a = new Array();这样写是错误的。 //但是他的派生类是可以创建对象的 阅读全文
posted @ 2020-09-08 22:49 想活出点人样 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 static void Main(string[] args) 2 { 3 //交错数组 4 //简单来说,就是建立一个每个维度长度不同的多维数组 5 int[][] aa = new int[3][]; 6 //这样我们就建立了一个交错数组 7 //有三层,而这三层的每一层都是没有定义长度的, 阅读全文
posted @ 2020-09-07 22:34 想活出点人样 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 1 static void Main(string[] args) 2 { 3 //一维数组的两种初始化 4 //动态初始化 5 int a = 5; 6 int[] aa = new int[10]; 7 int[] bb = new int[a]; 8 //利用new给int数组在堆中开空间初始 阅读全文
posted @ 2020-09-07 16:08 想活出点人样 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 1 static void Main(string[] args) 2 { 3 int i = 0; 4 string a = "我,是,傻,逼"; 5 string b = "我,是。大;傻‘逼s"; 6 string[] bb = new string[10]; 7 //存储被分割字符串的字符串 阅读全文
posted @ 2020-09-06 19:45 想活出点人样 阅读(425) 评论(2) 推荐(0) 编辑