Quick question. If I have a method to overload the << operator:
Header:
In the cpp:Code:ostream& operator <<(ostream &os, const Set &s);
Is this the correct way to do this? I have checked around and it says it's the right way to do it but I am still getting errors.Code:ostream& operator <<(ostream &os, const Set &s) { //print to a file }