2014年10月25日

c++数组-矩阵的转置

摘要: #include using namespace std;int main(){ int a[2][3]={{1,2,3},{4,5,6}}; int i,j,b[3][2]; for(j=0;j<2;j++){ for(i=0;i<3;i++){ ... 阅读全文

posted @ 2014-10-25 20:28 walter371 阅读(894) 评论(0) 推荐(0) 编辑

c++冒泡排序法

摘要: //冒泡排序法#includeusing namespace std;int main (){ int i,j,t,ii; int a[11]; //第0个元素始终没有用 cout>a[i]; //输入a[1]~a[10] } cout<<e... 阅读全文

posted @ 2014-10-25 18:35 walter371 阅读(311) 评论(0) 推荐(0) 编辑

导航