c++ check if element in array exists 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
}