This is my first post in this forum.
I have a string s in the following format: -1234567890
Now I need to strip the '-' and convert every single digit into an int and place it into an array of ints:
t = 1
t = 2
t = 3
t = 4
For the conversion I tried this inside a for loop, but this didn't work: t[i] = atoi(s[i]);