Hi,
I have made a class and have an overloaded ostream operator method in it... However it tells me:
"overloaded 'operator<<' must be a binary operator (has 3 parameters)."
Can someone tell me how to fix this? Thank you!
I have included some of my code:
class Element
{
private:
list<Element*> _children;
char* _tag;
int _value;
public:
ostream& operator<<(ostream& out, const Element& E); // (preordered traversal)
}