range-based for loop
suggest changestd::vector<int> primes = {2, 3, 5, 7, 11, 13};
for(auto prime : primes) {
std::cout << prime << std::endl;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents