title: How to divide a string into parts - Roman numerals
body: <p>I'm trying to divide a string into parts for reading Roman numerals. For example if the user enters</p>
  
  <pre><code>"XI"
  </code></pre>
  
  <p>I want the program to be able to understand that I is 1 and X is 10 in order for a data validation like this to work.</p>
  
  <pre><code>if(string roman == "X") int roman += 10;
   etc.
  </code></pre>