title: istream_iterator copy example keeps waiting for input
body: <p>I tried implementing an example of stream iterators from page 107 of "The C++ Standard Library". I get stuck on this line:</p>
  
  <pre><code>copy (istream_iterator&lt;string&gt;(cin), istream_iterator&lt;string&gt;(), back_inserter(coll)); 
  </code></pre>
  
  <p>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?</p>