Operator Overloading.

Discussion in 'C++' started by Arnaldo G. Jr, Dec 13, 2005.

  1. Hello,

    I am trying to do a class to use with images, so I need to implement
    some basic stuff with operator overload, now I am trying to do
    something like this:

    myclsIMG *a = new myclsIMG;
    int x;
    a(10,80) = 10;
    x = a(10,80);

    I can´t find much help about overloading operators, someone have a
    tutorial, or good documentation about it?

    Thanks
    Arnaldo.
    Arnaldo G. Jr, Dec 13, 2005
    #1
    1. Advertising

  2. Arnaldo G. Jr

    John Carson Guest

    "Arnaldo G. Jr" <> wrote in message
    news:
    > Hello,
    >
    > I am trying to do a class to use with images, so I need to implement
    > some basic stuff with operator overload, now I am trying to do
    > something like this:
    >
    > myclsIMG *a = new myclsIMG;
    > int x;
    > a(10,80) = 10;
    > x = a(10,80);


    You asked this question 2 weeks ago and it was answered. Look up your
    previous question in Google Groups if it is not accessible to you in any
    other way.

    > I can´t find much help about overloading operators, someone have a
    > tutorial, or good documentation about it?


    Try any C++ textbook. A free one is here:

    http://mindview.net/Books/TICPP/ThinkingInCPP2e.html


    --
    John Carson
    John Carson, Dec 13, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Smith
    Replies:
    2
    Views:
    410
    Ivan Vecerina
    Oct 6, 2004
  2. Replies:
    11
    Views:
    715
    James Kanze
    May 16, 2007
  3. hurcan solter
    Replies:
    3
    Views:
    712
    Cholo Lennon
    Aug 29, 2007
  4. Replies:
    11
    Views:
    544
  5. Replies:
    2
    Views:
    298
Loading...

Share This Page