Overloading stream insertion and addition operators in C++ (HackerRank)

Overloading stream insertion and addition operators in C++ (HackerRank)

In this HackerRank challenge about complex numbers, we will overload the addition operator in C++ to add up values from two custom objects. These two objects will be passed to our operator overloading function as references. We will also overload the stream insertion operator in C++ by making use of an output stream (ostream) object, which will also be a reference. All HackerRank solutions on GitHub (please leave a star): https://github.com/IsaacAsante/Hacker... HackerRank Overloading Operators coding challenge: https://www.hackerrank.com/challenges...