Combine your
CRational class and
CMatrix class so that you can handle matrices
whose entries are rational numbers, instead of being limited to only
integers.
Certainly, you have to modify your CMatrix::Read() function so that it
will read rational numbers instead of integers only.
Test your classes with the following main program:
cin >> n;
CMatrix a(n,n), b(n,n), c(n,n);
a.Read();
b.Read();
c = a + b;
c.Print();