摘要: void swap(int *a,int *b){ int temp=*a; *a=*b; *b=temp; } void BubbleSort(int *a,int length){ for(int i=0;ia[j+1]) swap(a+j,a+j+1); } } } 阅读全文
posted @ 2019-03-21 22:36 赵钱富贵 阅读(87) 评论(0) 推荐(0) 编辑