Question: C++ Pre lab: Design pseudo code for the complex class described below: Laboratory: Define a complex class with private and public members using operator-overloading techniques
Pre lab: Design pseudo code for the complex class described below: Laboratory: Define a complex class with private and public members using operator-overloading techniques to add, subtract, multiply and divide complex numbers. The over-loaded operators are: +, -, *, and/ You need to write these prototypes for over-loaded operator functions operator+ (complex x); operator (complex x); operator* (complex x); operator/ (complex x); You also need to define constructors, input and output data functions Your program should perform the following operations on complex objects as shown below complex nl,n2,n n3-nl+n2 n3-n1-n2 n3-n1 n2 n3=n12; Compile the above described program, execute it and show results to your instructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
