Professional Documents
Culture Documents
class complex{
private:
public:
void getdata(){
cin>>real;
cin>>img;
void show(){
cout<<"The real part is "<< real <<" and imaginary part is "<<
img<<endl;
complex c3;
};
int main(){
complex a,b,c,d;
a.getdata();
a.show();
b.getdata();
b.show();
c.sum(a,b);
return 0;