Skip to content

Commit

Permalink
Update file chapter_16/ex_03/ex_03.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdepeng99 committed Feb 12, 2023
1 parent ea015d9 commit 148d226
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chapter_16/ex_03/ex_03.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ int main(void) {
}

vector<string> wordlist;
copy(istream_iterator<string>(fin), istream_iterator<string>(),
back_insert_iterator<vector<string> >(wordlist));
// copy(istream_iterator<string>(fin), istream_iterator<string>(),
// back_insert_iterator<vector<string> >(wordlist));
string word;
while (fin >> word) {
wordlist.push_back(word);
}

fin.close();

Expand Down

0 comments on commit 148d226

Please sign in to comment.