摘要: 1.C#中的委托是什么?事件是不是一种委托? 委托是将一种方法作为参数代入到另一种方法。 是,事件是一种特殊的委托。 //比如:onclick事件中的参数就是一种方法。 以下是委托的代码: using System; delegate int NumberChanger(int n); namesp 阅读全文
posted @ 2022-01-18 15:38 程序员晓登 阅读(580) 评论(0) 推荐(0)
摘要: 1.请编程实现一个冒泡排序算法? public static void bubble_sort(int[] x) { for (int i = 0; i < x.Length; i++) { for (int j = i; j < x.Length; j++) { if (x[i] < x[j]) 阅读全文
posted @ 2022-01-18 09:38 程序员晓登 阅读(1611) 评论(0) 推荐(0)