摘要: /// /// 冒泡排序 /// public static void Mainsdfdrt() { bool B; int[] Array = new int[] { 5, 4, 3, 2, 1 }; for (int i = 1; i = i ; j--) { int R; if (Array[j-1]>Array[j]) { R = Array[j - 1]; Array[j - 1] = Array[j]; Array[j] = R; B = true; } } if (!B) { break; } } for (int i = 0; i /// 直接插入排序法 /// pub. 阅读全文
posted @ 2013-08-23 18:14 追你追到 阅读(245) 评论(0) 推荐(0) 编辑