Question: modify the class Complex to allow setting a complex number specified in modulus-argument form. This means that the complex number can be set by specifying


using namespace std? class complex I public: Complex () : // Constructor Complex( double x, double x ) I// Orerloaded Cemplex ( ) ; / Destruetor void set (double X, double Y ) : void sum (Complex z) i void show (), private 1 double wi // read part double yi /l imaginary part i 1 Complext fComplex ( ) I x=0,7y=0,2 ) Corplext:Complex (double X, double Y ) l x=xjy=yj Arter aum : z1=3.5+5.31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
