how to check if element is present in array c++ stk code example
Example: how to check if a value is inside an array in c++
if (std::find(std::begin(ourArray), std::end(ourArray), 99) != std::end(ourArray))
{
// Do stuff
}
if (std::find(std::begin(ourArray), std::end(ourArray), 99) != std::end(ourArray))
{
// Do stuff
}