In [1]:
#include <iostream>
#include <iterator> // for size
using namespace std;
In [2]:
double vec[5] = {11,5,8,7,4};
In [3]:
for(auto i = 0; i <= std::size(vec); i++){
if (vec[i] == 8){
std::cout << "Number 8 detected!!";
break;
}
}