写一JAVA程序?
int a[][] = {{1,2,3,4},{2,3,4,5},{3,4,5,6}};
int b[][] = new int[4][3];
for(int i = 0; i < 3; i++){
for(int j = 0; j < 4; j++){
b[j][i] = a[i][j];
}
b中存的就是a矩阵转置后的矩阵