Getting entry values from the standard input

  1. Enhance your CMatrix class by adding a member function Read(), which will read m_Row * m_Column integers from the standard input and store them in this matrix in a row-major order.
  2. Test your class with the following main program
    
        int m, n;
    
        cin >> m >> n;
        CMatrix a(m,n);
        a.Read();
    
        cin >> m >> n;
        CMatrix b(m,n);
        b.Read();
    
        CMatrix c;
        c = a * b;
        c.Print();
    
        return 0;
    
    
  3. For the following input data
    
    3 3
    1 2 3
    4 5 6
    7 8 9
    3 3 
    1 4 7
    2 5 8
    3 6 9
    
    
    The output should look like
    
      14  32  50
      32  77 122
      50 122 194
    
    
  4. For the following input data
    
    3 4
    1 2 3 4
    5 6 7 8
    9 10 11 12
    4 3
    1 5 9
    2 6 10
    3 7 11
    4 8 12
    
    
    The output should look like
    
      30  70 110
      70 174 278
     110 278 446
    
    
  5. Submit your source code which consists of both the main program and the CMatrix class.