CODE
ostream &operator<<(ostream &output, const Array2D &a)
{
for( int i = 0; i <a.row;i++)
{
output<<setw(4)<<a.ptr[i];
for( int j = 0; j <a.column;j++)
{
output <<setw(4) <<a.ptr[j];
}
output<<endl;
}
return output;
}
row and column are privare variables...
how can I print in respective row and column??