J
Jesse
I'm trying to read numbers from a string with the format
'(1,2,3,4,5)'. Each number needs to go into the array, number[].
If the input string is not formatted as above, an error message will
be outputted. The numbers do not have to be of type int(can be
fractions) I know I need to separate the string into smaller
substrings then convert the substrings to type double to be placed
into the array but I'm stuck at what to do first.
Can anyone help me with this?
Thanks,
Jesse([email protected])
'(1,2,3,4,5)'. Each number needs to go into the array, number[].
If the input string is not formatted as above, an error message will
be outputted. The numbers do not have to be of type int(can be
fractions) I know I need to separate the string into smaller
substrings then convert the substrings to type double to be placed
into the array but I'm stuck at what to do first.
Can anyone help me with this?
Thanks,
Jesse([email protected])