this->

void matrixType::setMatrix()
{
cin >> this->rowSize ;
cin >> this->columnSize;
}
matrixType::matrixType()
{
matrixType(0, 0);
}

matrixType::matrixType(int rows,int columns)
{
this->rowSize = rows;
this->columnSize = columns;
}
would doing this way the same
void matrixType::setMatrix()
{
rowSize=row;
columnSize=columns
}
matrixType::matrixType()
{
rowSize=0;
columnSize=0;
}
matrixType::matrixType(int rows,int columns)
{
rowSize=rows;
columnSize=columns;
}
1
2
3
4
5
6
7
8
9
10
matrixType::matrixType()
{
  matrixType(0, 0); //statement has no effect
}

void matrixType::setMatrix()
{
  rowSize=row; //¿where are row and columns declared?
  columnSize=columns
}
Are you really...? You just post some code? What do you want from us, TC? My psychic powers are failing me.
Topic archived. No new replies allowed.