I am totally stack on where to start on this. I have these directions:
Develop a class called complex. This class enables operations on so called complex numbers. These are of the form: realPart+imaginaryPart*i
a. Overload the addition operator (+) to add two complex numbers
b. Overload the subtraction operator (-) to subtract.
c. Overload the multiplication operator (*) to multiply
d. Overload the division operator (/) to divide
e. Overload the == and != operators for comparisons
f. Overload the operator (<<) to display the complex numbers.
After hours and hours, this is what I got so far:
Complex operator +(const Complex &op)
double real = _real + op._real, imag = _imag + op._imag;
Your help is appreciated, thanks.