Matrix Multiplication

  1. Enhance CMatrix and implement matrix multiplication with operator*().
  2. Test your class with the following main program:
    
        CMatrix a(3,3,1);
        CMatrix b(3,3,0);
        CMatrix c;
    
        a.Set(0, 1, 2);
        a.Set(0, 2, 3);
        a.Set(1, 0, 4);
        a.Set(1, 1, 5);
        a.Set(1, 2, 6);
        a.Set(2, 0, 7);
        a.Set(2, 1, 8);
        a.Set(2, 2, 9);
        b.Set(0, 1, 1);
        b.Set(1, 2, 1);
        b.Set(2, 0, 1);
        c = a * b;
    
        a.Print();
        b.Print();
        c.Print();
    
    
  3. The result should look like
    
     1 2 3
     4 5 6
     7 8 9
     0 1 0
     0 0 1
     1 0 0
     3 1 2
     6 4 5
     9 7 8