Complex Class with a Friend Function
Implement an overloaded “+” operator using a friend function.
We'll cover the following...
Challenge
Write a program that implements a Complex
class containing an overloaded + operator
that can add two Complex
objects:
- A Complex and a double
- A double and a Complex