decoding runlength code with string input

Hey all. I am fairly new to the subject. What I want to do is input a string from the console in the form "12A15B6C" and then put it into a 2D array such that it is expanded like AAAAAAAAAAAABBBBBBBBBBBBBBBCCCCCC. Is there some sort of trick that I can scan the string and stop once the first number is complete, and then scan the letter? Or am I going about this wrong? Thanks in advance.
Topic archived. No new replies allowed.