C++转置正方形矩阵,就是正方形矩阵的a[i][j]=a[j][i]。 输入 3 1 2 3 4 5 6 7 8 9 输出 1 4 7 2 5 8 3 6 9 #includeusing namespace std;int main(){ int ...