Answers for "c++ for loop to check if user input is in array"

C++
4

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
}
Posted by: Guest on March-28-2021

Code answers related to "c++ for loop to check if user input is in array"

Browse Popular Code Answers by Language