We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the last for loop, the loop variable has semantically no reason to be a string::size_type as we iterate a vector and not a string.
string::size_type
It would be better to write, for consistency with examples from the book, something like this:
for (decltype(vec.size()) i = 0; i != vec.size(); ++i) { if (i != 0 && i % 8 == 0) cout << endl; cout << vec[i] << " "; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the last for loop, the loop variable has semantically no reason to be a
string::size_type
as we iterate a vector and not a string.It would be better to write, for consistency with examples from the book, something like this:
The text was updated successfully, but these errors were encountered: