[Solved] Difference between the two?
An operator is a function which can be represented with a special syntax. So the following, if defined on a class MyClass: T MyClass::operator% (int k); can be called as follows: MyClass a; int k = 1; T answer = a % k; The other operator: T MyClass::operator[] (int k); Can be called by: T … Read more