1.

Solve : Isolating Integers From Characters in C language?

Answer»

Hi there people!
I'm TRYING to write a function in C language that reads from the user a set of integers separated by ',' (commas), but I'm having difficulty isolating the integers from the characters. I'm not sure if I should do it using a "for" or "while" loop,...
So if the input is something like: {100,20,50}
then, I should be ABLE to store the integers 100 20 50

Anybody got any idea how to do that??
I would really appreciate the help!!
Thanks.Check out the split function which RETURNS a zero-based, one-dimensional array containing a specified number of substrings.

Good luck.  8-)



Discussion

No Comment Found