qfedu-cpp-level/day5/homework/h6.cpp

21 lines
496 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 编写一个名为 MatrixArray 的类,表示矩阵数组。重载乘法运算符 *,使其能够执行两个矩阵积操作。重载[] 运算符,实现返回某一个行的一维数组并对数组进行设置值或访问值。
// 【提示】构造函数提供行数与列数的参数初始值为0。
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
class MatrixArray
{
private:
int row, col;
int **matrix;
};
int main()
{
return 0;
}