You are viewing a single comment's thread. Return to all comments →
Complex operator+(const Complex &a, const Complex &b) { Complex result; result.a = a.a + b.a; result.b = a.b + b.b; return result; }; ostream &operator<<(ostream &os, const Complex a) { os << a.a << "+i" << a.b << endl; return os; };
Seems like cookies are disabled on this browser, please enable them to open this website
Overload Operators
You are viewing a single comment's thread. Return to all comments →