title: C++ how to parse integers (and possibly doubles) from character array (or std::string)?
body: <p>i am working on simple program and have stuck with this for a few days now.</p>
  
  <p>How to parse integers (and possibly doubles) from character array?
  If it would be easier, char array can be converted to string,
  i mean, it is not a must have char array.</p>
  
  <p>I was looking for a C++ way of </p>
  
  <pre><code>sscanf(mystring, "di %lf %lf %lf", &amp;d1, &amp;d2, &amp;d3);
  </code></pre>
  
  <p>Problem is, i will have multiple lines of unknown length (numbers).
  And i'll have spaces or commas or something else delimiting numbers.</p>
  
  <p>Are tokens the way? Of which i know nothing.</p>
  
  <p>Well, thanks for any help.</p>