Answers for "how to check if a value is inside an array in c++"

C++
3

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 "how to check if a value is inside an array in c++"

Browse Popular Code Answers by Language