Possible Duplicate:
How to convert a single char into an int
I am working on a program that requires an integer be pulled from a string, and then added to other integers.
I.E. Input "123456789". I can pull out the 5th char, '5', but I need to add this to another int. If I try to convert this to int, it returns the ASCI value. Is there any way to convert a char to its corresponding int?