help with oop exercise (rectangular Matrix)

Hello everybody,i need help in exercise:

1.write a class of rectangular matrix in c++
a.define the operators +,-,+=,-= and the matrix multiplication(including squares check).
b.define the method Norm that return the sum of the squares.
c.define the method transpose that switch between columns to rows.
d.define the operator << as a function of the output of matrix.

2.write the main program to check the class properties.
anybody can help me?!!!


What have you tried so far?
This looks like a lot of fun. Write and you will have fun, too!
Breathe, do it one step at a time -- write one function and then check it's working correctly.
Topic archived. No new replies allowed.