Having looked at how to create a class representing a three-dimensional vector in the previous article, we’re going to look at how to add more operator-related functionality to it. We’ll start off with multiplying and dividing by a scalar, and move on to providing non-member operator overloads. It is important to understand that the parameter(s)… Continue reading Operator Overloading in Modern C++ (2)
↧