default constructor does not exist in the class

You have a constructor which takes two arguments, two integers.

You have NO constructor that takes 0 arguments.

Hence, trying to make a Matrix m1 fails, because the class expects two values to be given with the variable's creation.

This can be fixed by simply having a default constructor in the class, like such:

 
Matrix(){}


You can also set ROWS and COLS to 0 inside the {} since that will be better than not having them initialized.
The OP's gone........
Into the abyss.
Topic archived. No new replies allowed.