Change the matrix program (program 3) slightly.
Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second matrix are similar or not.
if(m1==m2)
{
m3=m1+m2;
m4=m1-m2;
}
else
display error;