hi,
i think you have an array of numbers and you want to check if the entered value is present in the array and if it is present then at which location. you want to do this by using some method which c++ already provides. (please correct if i am wrong !)
you can do this easily by using
vector[
^] instead of an array
see
here[
^] on how to use std:distance algorithm to find the index of an iterator
a similar question is
here on index of an iterator[
^]
check how to find value in a vector
here[
^]
if you still want to use an array
look here[
^]
hope this helps