#include<iostream>
using namespace std;
int main(){
int a[2][3] = { { 1, 2, 3 }, { 3, 4, 5 } };
int b[3][2];
cout << "a 数组的元素值" << endl;
for (int i = 0; i < 2; i++){
for (int j = 0; j < 3; j++){
cout << a[i][j] << " ";
b[j][i] = a[i][j];
}
cout << endl;
}
cout << "b数组的元素值" << endl;
for (int i = 0; i < 3; i++){
for (int j = 0; j < 2; j++){
cout << b[i][j] << " ";
}
cout << endl;
}
system("pause");
}