Click to See Complete Forum and Search --> : How to overload subscript operator?


nicoletonyf
October 25th, 2004, 03:02 PM
Hello there, I have to overload the subscript operator to return the largest element of a collection, the second largest, the third largest, and so on.
I don't really understand what to do. Do I have to create an array and sort it? What the output will looks like? I'm confused.Nicole