SyntaxFix
Write A Post
Hire A Developer
Questions
Try std::find
std::find
vector<int>::iterator it = std::find(v.begin(), v.end(), 123); if(it==v.end()){ std::cout<<"Element not found"; }