title: Read all integers from string c++
body: <p>I need some help with getting all the integers from a std::string and getting each of those integer into an int variable.</p>
  
  <p>String example:</p>
  
  <pre><code>&lt;blah&gt; hi 153 67 216
  </code></pre>
  
  <p>I would like the program to ignore the "blah" and "hi" and store each of the integers into an int variable. So it comes out to be like:</p>
  
  <pre><code>a = 153
  b = 67
  c = 216
  </code></pre>
  
  <p>Then i can freely print each separately like:</p>
  
  <pre><code>printf("First int: %d", a);
  printf("Second int: %d", b);
  printf("Third int: %d", c);
  </code></pre>
  
  <p>Thanks!</p>