и я хочу преобразовать его в оператор с помощью фильтра
Код: Выделить всё
for (int lotto_num: lottos) {
if (lotto_num == 0) {
unknown_count++;
}
for (int win_num : win_nums) {
if (lotto_num == win_num) {
count ++;
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/719 ... m-for-loop
Мобильная версия