title: Is is possible to stringstream this way? to convert from string to int?
body: <p>Is it possible to stringstream like this?
  I am trying to read with ifstream and convert it.</p>
  
  <pre><code>string things = "10 11 12 -10";
  int i1;
  int i2;
  int i3;
  int i4;
  stringstream into;
  into &lt;&lt; things;
  into &gt;&gt; i1;
  into &gt;&gt; i2;
  into &gt;&gt; i3;
  into &gt;&gt; i4;
  </code></pre>
  
  <p>I expect it to be :</p>
  
  <pre><code>i1 = 10
  i2 = 11
  i3 = 12
  i4 = -10
  </code></pre>
  
  <p>is that correct?</p>
  
  <p>Can the same stringstream variable be used multiple times?</p>
  
  <p>When I tried, the first time was ok but everything else later on is just 0.</p>