Skip to content
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

Open
z974890869 opened this issue Sep 1, 2020 · 0 comments
Open

关于12.20 打印限制条件 #91

z974890869 opened this issue Sep 1, 2020 · 0 comments

Comments

@z974890869
Copy link

我看到答案里用了
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;
}
’‘’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant