This is my first attempt at coding with C++ - where I used it to make a basic matrix calculator (MatCalc). It can currently only generate the determinants (and thus the inverse matrix) of matrices that are less than or equal to 3x3. It also uses some noticeably inefficient version control - containing code that is nested up to 8 times in some points! Regardless, it does the job - and I plan to improve its efficiency by using Strassen algorithms to perform the matrix multiplications, and by using functions and general OOP to decrease nesting (which I neglected to do here as I feared it would complicate the program further (which was a BIG mistake! (whoops, looks like I'm nesting things again.))).
The code below is hosted and compiled using Jdoodle.com's C++ online compiler, and written using the standard C/C++ v1.26.3 extension for Visual Studio Code. Due to the size of the code, you may have to scroll a bit to get to the Execute button, sorry. Additionally, the code relies on the standard cin command to take inputs, so the Interactive Mode MUST be enabled (unless you wish to preemptively put in inputs using the STDIN input option, but my code isn't designed around this).
Important: For the program to function correctly, please enable the "Interactive Mode" option.