#include #include #include #include class matrix; class vect { int n; double v[50]; public: void nhap(); void xuat(); void sapxep(); double max(); vect tongh(matrix &); vect nhan( matrix &); }; class matrix { int n,m; double mat[50][50]; public: void nhap(); void xuat(); double max(); double tong(); friend vect vect::tongh(matrix &); friend vect vect::nhan(matrix &); }; void matrix::nhap() {coutn>>m; for( int i=0; i