#include #include using namespace std; class Complex { private: double real,imag,magni; static int count; public: Complex(double x,double y); Complex(double x); Complex(); Complex(const Complex &p); ~Complex(); static void show_count(); void show(); void add(const Complex &p); friend Complex multiply(const Complex &p,const Complex &q); }; int Complex::count=0; Complex::Complex(double x,double y):real(x),imag(y) { magni=sqrt(real*real+imag*imag); count++; } Complex::Complex(double x):real(x),imag(0.0) { magni=sqrt(real*real+imag*imag); count++; } Complex::Complex():real(0.0),imag(0.0) { magni=sqrt(real*real+imag*imag); count++; } Complex::Complex(const Complex &p):real(p.real),imag(p.imag) { magni=sqrt(real*real+imag*imag); count++; } void Complex::show_count() { cout<<"conut: "<