istream_iterator copy example keeps waiting for input
问题 I tried implementing an example of stream iterators from page 107 of "The C++ Standard Library". I get stuck on this line: copy (istream_iterator<string>(cin), istream_iterator<string>(), back_inserter(coll)); The program keeps reading data from the console here, but does not pass on to the next line. How do I continue past this point? 回答1: take for instance, if you would have made an input stream of int then you would have given input like - 45 56 45345 555 ....., so in all those cases, the