C++ Operator Overloading
Give operators like +, ==, and << a meaning for your own classes, so you can naturally write p1 + p2 and cout << p, and learn the rules and best practices.
Lesson 33 of 42
Give operators like +, ==, and << a meaning for your own classes, so you can naturally write p1 + p2 and cout << p, and learn the rules and best practices.