摘要: -- ◆ 继承base class Program { static void Main(string[] args) { C b = new C(); b.f(); Console.ReadLine(); } } public class A { public void f() { Console 阅读全文
posted @ 2019-08-01 15:47 蓝雨冰城 阅读(79) 评论(0) 推荐(0)
摘要: 冒泡算法 int[] a = { 5, 1, 7, 2, 3 }; for(int i = 0; i < a.Length; i++) { for(int j = 0; j < a.Length - i - 1; j++) { if (a[j] > a[j + 1]) { int temp = a[ 阅读全文
posted @ 2019-08-01 14:27 蓝雨冰城 阅读(164) 评论(0) 推荐(0)