@pepstein
If I move my overloaded operator functions outside my class, or leave them inside with the friend notation in front they work, but with some unexpected residual affects. The >> operator, when overloaded, now doesn't work with the cin statements inside my main function. It says:
" 5 IntelliSense: more than one operator ">>" matches these operands:
function "operator>>(std::istream &is, int)"
function "std::basic_istream<_Elem, _Traits>::operator>>(int &_Val) [with _Elem=char, _Traits=std::char_traits<char>]"
operand types are: std::istream >> int
"
My
cout << object;
does work now though.
@LB
With the two lines (8 and 9) commented out, my program runs without error. With them in, it won't compile giving the following errors:
Error 1 error C2804: binary 'operator <<' has too many parameters
Error 3 error C2804: binary 'operator <<' has too many parameters
This error refers to the call in the main function.
Error 4 error C2679: binary '<<' : no operator found which takes a right- hand operand of type 'Set' (or there is no acceptable conversion)
Thanks for the reply's.