摘要: #include <stdio.h>void exchange(int &a,int &b){ a = a^b; b = a^b; a = a^b;}void printout(int a[],int n){ for(int i=0;i<n;i++){ printf("%5d ",a[i]); }}//直接选择排序void selectSort(int a[],int n){ int i,j; for(i=0;i<n;i++){ for(j=i+1;j<n;j++){ if(a[i]>a[j]){ exchange(a[i 阅读全文
posted @ 2013-04-13 01:38 mapleyuan 阅读(146) 评论(0) 推荐(0) 编辑