title: Is it possible to add two indexes of a string to a character to then convert that character to an int in c++?
body: <p>For example, I have a <code>string st="1234567"</code> and I want to add <code>st[0]</code> and <code>st[1]</code> to char ch so that <code>ch = 12</code>, and then to convert that to an int x so that <code>x = 12</code>.</p>
  
  <p>Is there a way to do this?</p>