摘要: acm练习(二)1.//三个数比较大小#includeusing namespace std;int main(){ int a[3]; for(int s=0;s>a[s]; } for(int m=0;ma[m+1]) { int temp=a[m]; a[m]=a[m+1];... 阅读全文
posted @ 2015-03-20 22:34 BugsTerminator 阅读(168) 评论(0) 推荐(0)
摘要: acm 练习(一)//5个数中的最大值,最小值#includeusing namespace std;void sore(int a[5]){ for(int i=0;ia[j]) { int temp=a[i]; a[i]=a[j]; a[j]=temp; } }}in... 阅读全文
posted @ 2015-03-20 21:52 BugsTerminator 阅读(232) 评论(0) 推荐(0)