I need to have a C++ program run through this equation:

[Matrix M]= 1/(AD-BC) * [D -B -C A]

and then...

Multiply this answer to another matrix which in the end will end up as all Whole numbers (ints). If anyone has a basic knowledge of Regular and Inverse Matrices and can figure out how to solve this problem i would really appreciate it. Thanks!