Thread: Opeartor overloading

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    46

    Red face Opeartor overloading

    Is it possible to overload the operator *+= such that
    obj1 *+= obj2;
    implies that
    obj1=obj1*(obj1+obj2);

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    There would have to be an operator *+= for you to be able to overload it.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    Is there any operator *+= in C/C++ i didn't found sorry u cant

Popular pages Recent additions subscribe to a feed