摘要: 简单的C++冒泡排序的程序#include<iostream>using namespace std;void swap(int &a,int &b);int main(){ int a[10]; cout<<"输入10个整数"<<endl; for(int i = 0;i != 10;i++) { cin>>a[i]; } for(int i = 0;i != 10;i++) { cout<<a[i]<<'\t'; } for(int i = 0;i < 9;i+ 阅读全文
posted @ 2012-07-31 17:42 gig886 阅读(242) 评论(0) 推荐(1) 编辑