0

If I were to overload the subscript operator, aka '[]', it would probably look something like this:

`int &operator[](int);`

If I filled this array with 10 digits.. 1.2.3.4, etc... How could I return the largest digit, and then the next largest digit? etc... I'm not sure if a max function would work, because it would always find the biggest number in the set... and max - 1 could work, but only since my numbers are chronological. Say I had an array of ten random numbers from 1 to 100. Then what would I do?