title: I need to convert string(for example A5) into one string (A) and one int (5)
body: <p>I need to convert string(for example A5) into one string (A) and one int (5) .</p>
  
  <p>I don't have any ideas to solve this problem.
  Want do do:</p>
  
  <pre><code>int convert(string y)
  {
   ???
   return poziom , pion; //(A=0 in pion, 5=5 in poziom) 
  }
  
  {
   int poziom; 
   int pion;  
  
   string x;
   cin &gt;&gt; x; //A5  
  
  convert(x);
  cout &lt;&lt; pion &lt;&lt; poziom; // pion=0 , poziom=5
  }
  </code></pre>