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
我看到答案里用了 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:
No branches or pull requests
我看到答案里用了
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: