Is there any way to define the basic arithmetic functions (as in +,-,*, and /) for classes other than int and float?
in
Programming Questions
•
1 years ago
Is there any way to define the basic arithmetic functions (as in +,-,*, and /) for classes other than int and float? I am making a complex number class, and I already made functions for all of them, but I would like to just type a*b instead of CMult(a,b) and the such. It isn't really important, but I am curious, and it would make he code look nicer.
1