//File : lab3Header.h //Author : Andre Long //Due : September 27, 2004 //Description : This specifiacation file allows a program to execute standard math operations // with complex number objects #ifndef COMPLEX_H #define COMPLEX_H #include using namespace std; class complex { private: float x; float y; public: complex() { x = 0; y = 0; } complex(float Xvalue) { x = Xvalue; y = 0; } complex(float Xvalue, float Yvalue) { x = Xvalue; y = Yvalue; } ~complex() { cout<<"Objects being destroyed!!! \n"; } void read(float xReal); void read(float xReal, float iImaginary); void write(); void add(complex &num1, complex &num2); void subtract(complex &num1, complex &num2); void multiply(complex &num1, complex &num2); void multiply(float realNum, complex &num1); }; #endif