I KNOW THE SAME IN JAVA AND I THINK IT IS SLIGHTLY SIMMILAR IN C++ TOO SO YOU CAN USE THIS METHOD.
You can return th elements in the array to see the values in them.
Use loop to circle through all the elements in the array.
Make the loop to check the element for the one you are searching for using if method.
If boolean is true then return them.