I need to convert data that is input from a file from ASCII chars to Ints, but the catch is no atoi and I can ONLY convert number characters and ignore the others, and the # symbol has to act like a break.
For example: if my file inputs $1,956#%34,9 the output will be
1956
349
So I know I need to subtract 0 from the ASCII car to get the int, but how do I get it to skip the other characters and have the # symbol act as a nwln?
I can't use functions. Just loops. *Sigh*
So confused...
I appreciate any advice.
For example: if my file inputs $1,956#%34,9 the output will be
1956
349
So I know I need to subtract 0 from the ASCII car to get the int, but how do I get it to skip the other characters and have the # symbol act as a nwln?
I can't use functions. Just loops. *Sigh*
So confused...
I appreciate any advice.
Comment