Help with 2d array

Hi i need to create program to change posiion on 2d array's.
ex.I need to change postion on a00,a01 to b00,b01. Ex. a00=1 a01=2, b00=3 b01=4, and i need to change there postion like this a00=3 a01= 4 and b00=1 b01=2.
I create code to insert 2d array.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  #include <iostream>
using namespace std;
int main()
{
   int a[100][100],b[100][100],i,j,n,m;
   cout<<"Enter row and colomn on first array\n";
   cin>>n;
   cout<<"Enter row and colomn on second array\n";
   cin>>m;
   cout<<"Enter element's on first array\n";
  for(i=0;i<n;i++)
   {
    for(j=0;j<n;j++)
    {
    cin>>a[i][j];
    }
  }
  cout<<"Enter element's on second array\n";
  for(i=0; i<n; i++)
  {
     for(j=0 j<m; j++)
     {
         cin>>b[i][j];
     }
  }
  return 0;
  }
Anyone to help ?
Topic archived. No new replies allowed.