SyntaxFix
Write A Post
Hire A Developer
Questions
In C++11, a range-based for loop might be a good solution:
vector<char> items = {'a','b','c'}; for (char n : items) cout << n << ' ';
Output:
a b c