Arrey

Can anyone give me an example of return the index of the max value?

I understand the return method and I also got the max for this problem. I dont get how to do index of the max value.

I dont need user input!
http://www.cplusplus.com/reference/algorithm/max_element/
(Iterators, indices ... close enough to adapt.)
Topic archived. No new replies allowed.