You shouldn't get a runtime exception if you've followed norm's suggestion, it should be a compile-time exception.
Take a look at this part of your code:
for (j = 0; j < n; j++)
{
...
Type: Posts; User: helloworld922
You shouldn't get a runtime exception if you've followed norm's suggestion, it should be a compile-time exception.
Take a look at this part of your code:
for (j = 0; j < n; j++)
{
...
Please use tab-formatting on your code. Even with syntax highlighting it's extremely difficult to read code which is all left-aligned. Your problem should become apparent once you properly format...
Yes, that's one way to do it. At the end your original identity matrix will be the inverted matrix and the original matrix will be the identity matrix. All you need to do at the end is copy the...
Wikipedia is your friend
There are many different ways to do it, the simplest to implement is probably Gauss-Jordan Elimination.