摘要:
//int类型的冒泡排序using System; namespace 冒泡排序 { class Program { static void Sort(int[] sortArray) { bool swapped = true; do { swapped = false; for (int i = 阅读全文
摘要:
委托的解释:可以赋值一个方法的引用,通过委托变量来调用这个方法 委托的定义方法:delegate 方法签名(T) ps:方法的签名=返回值+方法名+参数 委托声明的变量只能指向相同返回值和相同的参数类型。 private delegate string GetAString(); static vo 阅读全文