双冒泡排序
摘要:
第一篇博文,请多多指教:双冒泡排序,就是冒泡排序的复杂版本,第一次排序为小数在前,第二次排序为大数再前。 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 const int N = 10; 6 int[] a = new int[N]; 7 int i, j, t; 8 Random randObj = new Random();//生成随机数 9 for (i = 0; i < N; i++)10 a[i] = randObj.Next(10, 99);11 Console.WriteLine("Befo 阅读全文
posted @ 2011-07-26 17:35 wargoo 阅读(277) 评论(0) 推荐(0) 编辑