Question: Perform the following code in C++ language ! Write the definition for a class called complex that has floating point data members for storing real
Write the definition for a class called complex that has floating point data members for storing real and imaginary parts. The class has the following member function: void disp() to display complex number object Define a constructor to set the values of the objects. Write main function to create five complex number objects. Set the value in two objects using constructor & Use Operator overloading to find sum, difference and product of the complex numbers and return in the 3^rd, 4^th & 5^th object respectively. Display all complex numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
