int valueIndex = std::distance( yourArray, std::find( yourArray, yourArray + sizeof(yourArray) / sizeof(yourArray[0]), yourValueToFind));