I have a string, "004-034556", that I want to split into two strings:
string1="004";
string2="034556";
That means the first string will contain the characters before '-', and the second string will contain the characters after '-'. I also want to …
I'm trying to iterate over the words of a string.
The string can be assumed to be composed of words separated by whitespace.
Note that I'm not interested in C string functions or that kind of character manipulation/access. Also, …