Computer Science, asked by dhanyashrees2002, 5 months ago

write a program to add complex numbers using constructor overloading​

Answers

Answered by Anonymous
0

Answer:

cout<<"\n\tEnter the real and imaginary part of number 2:\n\t"; cin>>b>>c; Complex c3(b,c); //Calling parameterised constructor for different values. Complex c4=sum(c2,c3); //Calling copy constructor

Answered by magicMoment
0

Explanation:

cout<<"\n\tEnter the real and imaginary part of number 2:\n\t"; cin>>b>>c; Complex c3(b,c); //Calling parameterised constructor for different values. Complex c4=sum(c2,c3); //Calling copy constructor.

Similar questions