E
electrixnow
in MS VC++ Express I need to know how to get from one comma delimited
text string to many strings.
from this:
main_string = "onE,Two,Three , fouR,five, six "
to these:
string1 = "one"
string2 = "two"
string3 = "three"
string4 = "four"
string5 = "five"
string6 = "six"
the white space needs to be removed and the case needs to be all upper
or lower.
The result needs to be strings and not pointers or addresses in memory
so I can test:
string test = "three";
if (three == "three")
some getlines will only have two strings some may have up to 10
Please help with examples, you input with exact syntax is greatly
appreciated
I have been struggling with not using pointers but every time I end up
using them.
Thanks in advance
text string to many strings.
from this:
main_string = "onE,Two,Three , fouR,five, six "
to these:
string1 = "one"
string2 = "two"
string3 = "three"
string4 = "four"
string5 = "five"
string6 = "six"
the white space needs to be removed and the case needs to be all upper
or lower.
The result needs to be strings and not pointers or addresses in memory
so I can test:
string test = "three";
if (three == "three")
some getlines will only have two strings some may have up to 10
Please help with examples, you input with exact syntax is greatly
appreciated
I have been struggling with not using pointers but every time I end up
using them.
Thanks in advance