// Header file with Complex class definition // (Interface) #ifndef COMPLEX_H #define COMPLEX_H class Complex{ friend ostream &operator<<(ostream&, const Complex &); public: Complex(double = 0.0, double = 0.0); // constructor ~Complex(); // destructor Complex operator+(const Complex & ) const; //addition Complex operator-(const Complex & ) const; // subtraction const Complex &operator = (const Complex & ); // assignment // double GetReal(void); // double GetImaginary(void); // void SetReal(double); // void SetImaginary(double); void print() const; private: double real; // real part double imaginary; // imaginary part }; #endif