copy constructor 2d array c++ code example
Example: copy 2 dimensional array c++
//COPY 2D ARRAY TO ANOTHER 2D ARRAY
for (int x=0 ; x < 50; x++)
{
for (int y=0 ; y < 50; y++)
{
b[x][y] = a[x][y];
}
}
//COPY 2D ARRAY TO ANOTHER 2D ARRAY
for (int x=0 ; x < 50; x++)
{
for (int y=0 ; y < 50; y++)
{
b[x][y] = a[x][y];
}
}