String.at() returning funky numbers
<p>when I am trying to run this snippet of code I am getting some malfunctions I have not been able to pinpoint the cause of. The first two "cout" lines display the numbers 7 and 3, however, the last "cout" line displays numbers ranging from 50-60 usually (At the moment when I run it I get 55 and 51, which seems to somehow correlate a bit with the numbers I am trying to read). As far as I can tell from some googling and the books I have at hand this should be valid, but there's obviously something I am missing. Thank you for your time.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    string text = "73";
    int one=0, two=0;

    cout &lt;&lt; text.at(0) &lt;&lt; endl;
    cout &lt;&lt; text.at(1) &lt;&lt; endl;
    one = text.at(0);
    two = text.at(1);
    cout &lt;&lt; one &lt;&lt; endl &lt;&lt; two &lt;&lt; endl;
    return 0;
}
</code></pre>
