#include<iostream>usingnamespacestd;classComplex{private:intreal;intp_w_picpath;public:Complex(intreal=0,intp_w_picpath=0):real(real),p_w_picpath(p_w_picpath){cout<<"Complex::Complex():"<<this<<endl;}Complex(constComplex&x):real(x.real),p_w_picpath(x.p_w_picpath){cout<<"Complex::Complex(Complex&):"<<this<<endl;}~Complex(){cout<<"Complex::~Complex():"<<this<<endl;}Complexoperator+(constComplex&c){returnComplex(real+c.real,p_w_picpath+c.p_w_picpath);}Complexoperator-(constComplex&c){returnComplex(real-c.real,p_w_picpath-c.p_w_picpath);}voidshow()const{cout<<real;if(p_w_picpath>0)cout<<"+";cout<<p_w_picpath<<"i"<<endl;}};intmain(intargc,char*argv[]){Complexa(10,20);Complexb(70,80);Complexc=a+b;Complexd=a-b;a.show();b.show();c.show();d.show();return0;}