I called the operator<< of SortedSinglyList in LinkedMatrix's operator<<, and determined that the error was in the marked line. Is this error related to const? But none of the code I wrote here contains const
I ran operator<< in SSL correctly, but LM failed
class LinkedMatrix-------
friend ostream& operator<<<>(ostream& os, LinkedMatrix &a)
{
for (int i = 0; i < a.rows; i++)
cout << "i" << (*a.rowlist[i]); //括号相当于SSL对象。调用SSL.operator<<
}
operator<<<>What is this<> of yours?