64,687
社区成员
发帖
与我相关
我的任务
分享
#ifndef MATRIX_H_
#define MATRIX_H_
class MyMatrix
{
private:
int row;
int lin;
int** pm;
void init();
public:
MyMatrix();
MyMatrix(int r=0,int l=0);
MyMatrix::MyMatrix()
{
row=lin=0;
}
MyMatrix::MyMatrix(int r,int l)
{
row=r;
lin=l;
init();
}
MyMatrix A;
MyMatrix B(3,4);