摘要: 先写出来几个常见的排序算法: 1插入排序 2选择排序 3冒泡排序 4快速排序 5归并排序 6计数排序 后续会更新堆排序,基数排序,希尔排序。。。。敬请期待。。 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 //插入排序 6 void swap(int *a,int *b) 7 { 8 int temp; 9 temp=*a; 10 *a=*b; 11 *b=temp; 12 } 13 void insertsort(int arry[],in... 阅读全文
posted @ 2013-05-30 22:01 zxjay 阅读(311) 评论(0) 推荐(0) 编辑