Determinant (2)

  1. We have learned how to calculate the determinant of a 3x3 matrix.
  2. Enhance your previous exercise about class CMatrix and add a public member function Det() to calculate the determinant of this matrix.

Test your class definition with this main program and compile the program with "clang++ determinant-2.cpp". The running result should look like:

0
0
6