title: going through a string of characters and extracting the numbers?
body: <p>Given a string of characters, how can I go through it and assign all the numbers within that string into an integer variable, leaving out all other characters?</p>
  
  <p>I want to do this task when there is a string of characters already read in through <code>gets()</code>, not when the input is read.</p>