Thread: operators in c++

  1. #1
    Registered User
    Join Date
    Jan 2002

    Post operators in c++

    i need your help to understand how operators(operator+,operator*...) are used?and what are they used for??

  2. #2
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    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



    Last edited by endo; 09-05-2002 at 07:48 AM.
    Couldn't think of anything interesting, cool or funny - sorry.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical Operators in C++
    By Flecto in forum C++ Programming
    Replies: 4
    Last Post: 05-15-2009, 07:17 AM
  2. Bolean Operators hurt my head. (Trouble understanding) :(
    By Funcoot in forum C++ Programming
    Replies: 3
    Last Post: 01-20-2008, 07:42 PM
  3. operators???
    By arjunajay in forum C++ Programming
    Replies: 11
    Last Post: 06-25-2005, 04:37 AM
  4. Operators
    By George in forum C++ Programming
    Replies: 3
    Last Post: 04-02-2003, 07:35 PM
  5. operators operands
    By verb in forum C Programming
    Replies: 6
    Last Post: 02-13-2002, 07:04 PM