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.
Thank you so much! It works amazing!!!! I want to say a personal thank you; "Thank you to every individual that had a role in helping this assignment, you all have helped me so much!" I really appericate all your help. If you have a review for me to write, I'd be more than happy to write you/this website a great review. Hope everyone of you have a great day! Thanks again!