简介: #ifndef __H_MATRIX_H__ #define __H_MATRIX_H__ #include using namespace std; template class matrix { public: matrix(int rows, int cols):array(rows) { for (int i=0; i> array; // 使用vector存储矩阵元素,提供动态数组特性。 };