#ifndef __COMPLEX_H_20040301__ #define __COMPLEX_H_20040301__ class Complex { friend bool operator == (const Complex& _arg1, const Complex& _arg2); friend bool operator != (const Complex& _arg1, const Complex& _arg2); private: double real, image; public: Complex (double _re = 0, double _im = 0); Complex (const Complex& _arg); virtual ~Complex (); Complex& operator = (const Complex& _arg); Complex& operator += (const Complex& _arg); Complex operator + (const Complex& _arg) const; Complex operator - (const Complex& _arg) const; // Complex operator * (const Complex& _arg) const; // Complex operator / (const Complex& _arg) const; double im () const; double re () const; // double arg () const; double abs () const; operator double () const; }; bool operator == (const Complex& _arg1, const Complex& _arg2); bool operator != (const Complex& _arg1, const Complex& _arg2); #endif //__COMPLEX_H_20040301__