title: C++ split string into array
body: <p>Several answers (like <a href="https://stackoverflow.com/questions/3421817/splitting-int-from-a-string">splitting int from a string</a>) are proposing</p>
  
  <pre><code>#include &lt;sstream&gt;
  </code></pre>
  
  <p>Unforunately, doesn't compile for me (error "sstream: No such file or directory").
  I found I can use </p>
  
  <pre><code>#include &lt;strstream&gt; 
  </code></pre>
  
  <p>instead. Ok, now, with</p>
  
  <pre><code>std::string s = "100 123 42";
  std::istringstream is( s );
  </code></pre>
  
  <p>I got "undeclared variable `istringstream' (first use here)".
  Ok, trying out:</p>
  
  <pre><code>std::istrstream is(s);
  </code></pre>
  
  <p>Almost ok. Error: "no matching function for call to `istrstream::istrstream (string &amp;)'".
  But at least it compiles with:</p>
  
  <pre><code>std::istrstream is();
  </code></pre>
  
  <p>So I feel I'm somewhere near:) What's missing?</p>