Split string "A10" into char 'A' and int 10

Posted by calebthorne on Stack Overflow See other posts from Stack Overflow or by calebthorne
Published on 2010-04-30T05:24:26Z Indexed on 2010/04/30 5:27 UTC
Read the original article Hit count: 325

Filed under:
|

Given a string consisting of a single character followed by a number (one or two digits), I would like to split it into a character and an integer. What is the easiest way to accomplish this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about string