How to int from string?

I need help in doing this for class. So, lets say a user inputs a string "1234" how would i be able to add 2 to each number individually? so the it would look like this after ward "3456". Thanks in advance.

 
Think of a string as a char array with 4 elements (in your example). Then either cast each element to int and add 2 or add 50.
Topic archived. No new replies allowed.