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