how to know if a number exists in an 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
}