I have this defined in my class
and i'm getting this error; error C2511: 'Matrix &Matrix:perator ^(int)' : overloaded member function not found in 'Matrix'Code:Matrix& operator^(int&); // in class Matrix Matrix& Matrix :: operator^(int n) { Matrix M = *this; for(int i=0; i<n-1; i++) M = M * (*this); return M; }