Ok, I know how to overload an operator. I have successfully overloaded +, -,=, * for a matrix class. I am trying to do inversion of a matrix. I have the code working for the inversion but I do not know how to properly overload the function I want.
I have it now as :
aInverted = /a; // in main
matrix matrix::operator/(const matrix& inputted) // function declaration
The reason I suspect the code doesn't work is because all of my other functions had (operand) (overloaded operator) (operand) and this is just (overloaded operator) (operand).
The error I get is error C2059: syntax error : '/'.
I need to keep the main function the way it is such as aInverted = /a;