title: using getline for a c++ string to include spaces
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5882872/reading-a-full-line-of-input">Reading a full line of input</a>  </p>
  </blockquote>
  
  
  
  <p>I came across this snippet of code as a way to input a string (not a c string of char type) and have it read the whole line rather than stopping at the first space.  Can someone give me an actual example of this where I want to input the line until a newline character is hit?</p>
  
  <pre><code>istream&amp; getline(istream&amp; ins, string&amp; strVar);
  </code></pre>