|
|
@ -8,7 +8,7 @@
|
|
|
|
class Array2D
|
|
|
|
class Array2D
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int **arr; // 指针数组退化为二级指针
|
|
|
|
int **arr; // 指针数组退化为二级指针
|
|
|
|
const int row, col; // 二维数组的行和列
|
|
|
|
int row, col; // 二维数组的行和列
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
Array2D(int _row, int _col) : row{_row}, col{_col}
|
|
|
|
Array2D(int _row, int _col) : row{_row}, col{_col}
|
|
|
|
{
|
|
|
|
{
|
|
|
|