i need your help to understand how operators(operator+,operator*...) are used?and what are they used for??
i need your help to understand how operators(operator+,operator*...) are used?and what are they used for??
those 2 above are called addition and multiplication operators. You probably covered them in junior school, for example:
1 + 1 = 2 //note the + operator
But seriously, if you mean overloaded operators they are used in the same way but you need to define them for your own classes. Search the boards there's probably dozens of examples of operator overloading
Edit : I found an example or 3
1
2
3
Last edited by endo; 09-05-2002 at 07:48 AM.
Couldn't think of anything interesting, cool or funny - sorry.