-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
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
关于12.20 打印限制条件 #91
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我看到答案里用了
bool operator!=(const StrBlobPtr& p) { return p.curr != curr; } 使用 !=
请问如果不用!= ,那么限制条件还可以是什么?
‘’‘
{
StrBlob vs;
//我把代码粘贴到dev中后发现,是在文件路径之前多了一个“?”号。
//解决:用键盘一个个敲进去
ifstream inf("C:/Users/z9748/Desktop/exp_read_ANSI.txt");
string line;
while (getline(inf, line))
{
istringstream stream(line);
string word;
while (stream >> word)
{
vs.push_back(word);
}
}
inf.close();
//打印
for(StrBlobPtr i = vs.begin(); i != vs.end(); i.incr())
{
cout << i.dered() << " ";
}
cout << endl;
}
’‘’
The text was updated successfully, but these errors were encountered: