冒泡排序法
摘要:
#include int swap(int *x,int *y){ int temp; temp=*x; *x=*y; *y=temp;}int main(){ int a[501]; int n; scanf("%d",&n); for(int i=0;i=0)&&(a[i]>a[i+1]);i-... 阅读全文
posted @ 2014-12-30 18:02 最爱七 阅读(214) 评论(0) 推荐(0) 编辑
2014年12月30日 #