Quote:
quote:
--------------------------------------------------------------------------------
Originally posted by PorkyChop
ooint = int + int;
that's fine, but i think you are looking at it the wrong way. the
int + int part is the integer addition operator, which has already been defined and it returns an integer. So, this:
ooint = int + int;
really means this:
ooint = int;
--------------------------------------------------------------------------------
How do I handle for that?
You don't, int + int is built into the compiler, so it does everything for you as long as ooint has an overloaded = operator that takes an int.