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
while (cin >> s) { words.push_back(s); }
敲击多个空格分割的单词回车后,这些单词都被写入了vector,但循环出不来。 我的方法: while (cin >> s && s!=“end”) { words.push_back(s); }再进行下步操作
是我的理解有问题吗,原题解运行不了。
The text was updated successfully, but these errors were encountered:
题解代码换行没用,要手敲\n才能出循环
Sorry, something went wrong.
No branches or pull requests
敲击多个空格分割的单词回车后,这些单词都被写入了vector,但循环出不来。
我的方法:
while (cin >> s && s!=“end”) {
words.push_back(s);
}再进行下步操作
是我的理解有问题吗,原题解运行不了。
The text was updated successfully, but these errors were encountered: