#include "Matrix.h"
using namespace std;
Matrix::Matrix()
{
row=2;
col=2;
}
Matrix::Matrix(int row, int col)
{
this->row=row;
this->col=col;
}
int Matrix::getrow()
{
return row;
}
int Matrix::getcol()
{
return col;
}
void Matrix::setrow(int row)
{
this->row=row;
}
void Matrix::setcol(int col)
{
this->col=col;
}
void Matrix::output()
{
double **list=new double[row];
for(int i=0;i
list[i]=new double [col];
}
for(int i=0;i
for(int j=0;j
cin>>list[i][j];
}
}
for(int i=0;i
for(int j=0;j
cout<
- }
}
}