title: Using cin.get to get an integer
body: <p>I want to get a string of numbers one by one, so I'm using a <code>while</code> loop
  with <code>cin.get()</code> as the function that gets my digits one by one.</p>
  
  <p>But <code>cin.get()</code> gets the digits as <code>char</code>s and even though I'm trying to use
  casting I can't get my variables to contain the numrical value and not the ascii value
  of the numbers I get as an input.</p>