#ifndef COMPLEX_H #include #include // represents complex numbers in cartesian form struct Complex { double re; double im;// todo }; // complex number output std::ostream& operator<< (std::ostream& cout, Complex c); std::istream& operator>> (std::istream& cin, Complex c); Complex operator+ (Complex& a, Complex& b); Complex operator- (Complex& a, Complex& b); Complex operator-(Complex a); Complex operator* (Complex& a, Complex& b); Complex operator/ (Complex& a, Complex& b); bool operator== (Complex& a, Complex& b); bool operator!= (Complex& a, Complex& b); #endif