/* University College London Dept of Physics Course in C++ 3C59 | all rights reserved 2000 | | Utility: Complex class: declaration | | | Author: P.Clarke */ #ifndef _complex_h #define _complex_h 1 #include class Complex { public: // Standard Constructors Complex( ) ; Complex( float r, float i ) ; Complex( const Complex& src ) ; // Overloaded operators that can return references Complex& operator=( const Complex& rhs ) ; Complex& operator+=( const Complex& rhs ) ; // Overloaded operators which cannot return references Complex operator+( const Complex& rhs ) ; Complex operator-( const Complex& rhs ) ; Complex operator*( const Complex& rhs ) ; Complex operator/( const Complex& rhs ) ; // To print out void print(); private: float real ; float imag ; }; #endif