摘要: 冒泡排序 1 //冒泡排序 2 ////////////////////////////////////////////////////////////////////////// 3 void BubleSort(int a[],int n) 4 { 5 int temp; 6 bool flag=false; 7 for (int i=0;ia[j+1])13 {14 temp=a[j];15 a[j]=a[j+1];16 a[j+1]=temp;... 阅读全文
posted @ 2013-12-23 23:44 杨小帅 阅读(469) 评论(0) 推荐(0) 编辑