摘要: //插入排序 void InsertSort(int *a,int len) { for(int i=1;i<len;i++) { int j=i-1; int temp=a[i];//需要插入的数据 while(temp<a[j] && j>=0)//当插入的数据小于前面的数据时 { a[j+1] 阅读全文
posted @ 2019-01-19 15:35 调皮的贝叶斯 阅读(88) 评论(0) 推荐(0) 编辑