#ifndef COMPLX_H #define COMPLX_H #include #include /* * Written by Mike Rollins * rollins@alumni.wfu.edu * Copyright 2004. */ class Complx { protected: float a; //real part float b; //imaginary part double p; //power char *complx_version; public: // Create a complex number Complx(float, float); // set the power to which to raise // the complex number void set_power(double); // Square this complex number void raise_to_power(); // Set the value of this object // to that of the parameter void Set(Complx); // Add a Complx number to this number void Add(Complx); void Print(); float get_real(); float get_imaginary(); char *version() {return complx_version; }; }; #endif