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.
#include <iostream>
usingnamespace 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;
}