My last thread died, so I'll start anew.
Finishing my "int class"... help with weird operator overloads
I'm storing an integer inside a class that is similar to a string class. I'm overloading every operator that comes to mind so that it functions exactly the same as an integer. I've got most of the operators working, but there are a few that stump me:
Operator/Operation Performed
&= Bitwise-AND assignment
|= Bitwise-inclusive-OR assignment
^= Bitwise-exclusive-OR assignment
++ Increment operator
-- Decrement operator
&
^
|
If any of those don't normally correspond to an integer, then I need to know how to get it to act as a string.
Thanks so much for your help!



LinkBack URL
About LinkBacks


