istream& operator>>(istream &is, ComplexNumber &rhs){ double a,b; char c; is >> a >> c >> b; rhs.x = a; rhs.y = b; return is;