Hi I am trying to make an if statement that asks if a number is a member of a vector but am not sure how to do this? I want something of the form:
if(number is an entry in vector_name) do whatever;
Thank you
You might look at input iterators such as find().
Good job Zhuge and wolfgang!