题目描述
输出行列变换后的数组。
1 2 3
4 5 6
输出:
1 4
2 5
3 6
所谓矩阵行列互换是指,原来的行变为列,其中元素相邻顺序不变。原来的列变为行,其中元素相邻顺序不变。
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int a[10
题目描述
输出行列变换后的数组。
1 2 3
4 5 6
输出:
1 4
2 5
3 6
所谓矩阵行列互换是指,原来的行变为列,其中元素相邻顺序不变。原来的列变为行,其中元素相邻顺序不变。
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int a[10