Sunday, July 12, 2009

Overload the equality operator (==) in a linked stack in C++?

I'm too lazy to check the syntax, so caveat emptor


Make a class that extends the linked stack (something like class MyLinkedStack : public linked_stack)


Overload == in your class. ( public operator == {/*some code here*/}


No comments:

Post a Comment