0
How to overload % operator
How can I overload modules operator in C++, kindly explain and provide me an example. Thank You
1 Réponse
0
You can overload it just like +, - or any other operator in C++.
there is not any difference.
Second operand will be passed as argument to the overload function and you can return whatever you want after processing it