Hey,
I'm having trouble overloading the ~ operator (the determinant of the matrix) in a case of 2x2 matrices. So i have a matrix class, with the constructor, overloading +, += and ~ operators. the first two are working but I don't know how to overload the ~ one.
here's what I have:
matrix matrix::operato r~(matrix &m) {
double x;
x=(m.a11*m.a22)-(m.a12*m.a21);
return x;

of course it's...