Question:
Normally, you access an array by the number of the element you want. Is it possible, in C++, to access an element by the value and return the number?
Answer:
Everything’s possible. You should look at STL’s map<> container. It does exactly that.