#How do I specify in the if statement that the variable is equal to any of the numbers
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
that the variable is equal to any of the numbers in the month31 array?
Make another function to check if the array contains a value.
template<class C, typename T>
bool contains(C&& c, T t) {
return std::find(std::begin(c), std::end(c), t) != std::end(c);
);
thnx