矩阵的加减乘运算: 1. #include const int m=3; //设定的行数 const int n=3; //设定的列数 class matrix //矩阵类 { private: int mem[m][n]; public: matrix(); //无参构造函数 matrix(int a[m][n]); //含参构造函数 friend matrix operator+(matrix &a,matrix &b); //运算符加重载 friend matrix operator-(matrix &a,matrix &b); //运算符减重载 friend matrix operator*(matrix &a,matrix &b); //运算符乘重载 void display(); //显示函数 }; matrix::matrix() //无参时设定为零矩阵 { for(int i=0;i>a[i][j]; cout<<"********************************"<>b[i][j]; cout<<"*******************************"<