摘要: 冒泡 1 static void BubbleSort() 2 { 3 int[] array = new int[] { 7, 3, 5, 8, 2 }; 4 5 for (int i = 0; i < array.Length; i++) 6 { 7 for (int j = 0; j < array.Length - i - 1; j++) 8 { 9 if (array[j] > array[... 阅读全文
posted @ 2013-05-29 16:02 小09牛 阅读(176) 评论(0) 推荐(0) 编辑