I am developing a class for working with long arithmetic. How do I make my class support arithmetic operations between its objects?
To do this you have to overload the arithmetic operators for your class. For example: the signature of overloading the operator "+" in the form of function of class Foo& Foo:: operator + (const Foo& f). Note that for the operators +=, -=, *=, /= you have to return *this for your overloaded operator to be used in the expressions like a += b + c.
AssignmentExpert helped me a bunch. The price is a little high but the result is good. Detailed explanation helped me to better understand the code. I will consider to seek your help again when in need.