+ 2
How to overload this?
Overload the * operator for class A class A{ int var; A _________*(A &obj){ A res; res.var=this->var*obj.var; return res; } };
2 odpowiedzi
+ 16
Put the word "operator".... >.>
+ 1
omg, thanks, i cant understand all the way((