Operator Overloading.

A

Arnaldo G. Jr

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.
 
J

John Carson

Arnaldo G. Jr said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top