C++ error C2678: binary '<<': no ​​operator found accepting left operand of type 'const std::ostream'
为情所困
为情所困 2017-06-05 11:11:05
0
1
1127

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<<
    
}

为情所困
为情所困

reply all(1)
仅有的幸福

operator<<<>What is this<> of yours?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template