Answers for "can you have if in for loop c++"

C++
6

c++ if in equivalent

#include <algorithm>
#include <vector>

if ( std::find(vec.begin(), vec.end(), item) != vec.end() )
   do_this();
else
   do_that();
Posted by: Guest on July-09-2020

Code answers related to "can you have if in for loop c++"

Browse Popular Code Answers by Language