Input loop: Difference between revisions
Content deleted Content added
Modula-3 |
|||
Line 169:
void read_words(std::istream& is, std::vector<std::string>& words)
{
words.insert(words.end(),
std::copy(std::istream_iterator<std::string>(is), std::istream_iterator<std::string>(),▼
std::
std::istream_iterator<std::string>());
// std::istream_iterator<std::string>(),
// std::back_inserter(words));
}</lang>
|