Sunday, July 12, 2009

/C++/ Overloading operators?

I have objects that each contain two strings and an int that I want to sort using overloading operators.





I want to overload ==, %26lt;,and %26gt; operators in order to sort the string/string/int of the objects.





How would I do this?





Let me know if you need more information, I can put snippets of code in additional details.

/C++/ Overloading operators?
What do you mean by sort? Do you know how to overload operators and just don't know how to 'sort' the 'string/string/int' off(*?) of the objects? Or do you need help overloading the operators, too.


No comments:

Post a Comment