how to find if a number is present in array c++ 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
}