ok....so i have code that will return whether or not the string im searching for is found. Which is fine and dandy, but i also need the array index, for where the match was found. (names are read from a txt into an array, then the array is searched with the following code)
************code****************
if ( std::binary_search(names, names + 4, search) )
cout << "Found at " << << endl;
else
cout << "Not found" << endl;
**************/code**************
so what this boils down to... caa i modify what i have to return and array index? or must i ditch this ?