#include<iostream.h>
class Complex{
public:
Complex(float i, float j=0){
real=i;
V=j;
}
void add(Complex t){
real=real+t.real;
V=V+t.V;
}
void show(){
cout<<real<<"+"<<V<<"*i"<<endl;
}
private:
float real;
float V;
};
float main(){
Complex c1(3,5);
Complex c2(4.5);
c1.add(c2);
c1.show();
return 0;
}