hey, i am working on this project, and have made it to the end of the hard coding part. Now i need to work out the bugs / get the thing to compile. I am having some trouble though as i am getting error messages that i dont understand.
here is the code that i am having issues with:
//in matrix.h
template <class T>
ostream& operator<<(ostream& out, Matrix<T>& m)
{
m.output(out);
return out;
}
//problem occurs when this is run:
out << "-m6 = " << -m6 << endl;
and here is the error that i am getting:
MatrixTest.cpp - In function `int main()':
166 - MatrixTest.cpp - no match for 'operator<<' in 'std::operator<< [with _Traits = std::char_traits<char>](((std::basic_ostream<char, std::char_traits<char> >&)(&std::cout)), ((const char*)"-m6 = ")) << Matrix<T>::operator-() const [with T = int]()'
those are the big ones that are giving me issues. thanks for your help!!
mattwaab;
p.s. in the zip folder, the project is in the folder called "project"