CMatrix a(3,3,1);
CMatrix b(3,3,2);
CMatrix c;
// c = a.Add(b);
c = a + b; // Assignment
c.Print();
CMatrix d = c + b;
CMatrix e = d;
e.Print();
The running result should look like:
3 3 3
3 3 3
3 3 3
5 5 5
5 5 5
5 5 5