I have an array of sets of numbers and words that are all put together in one string like so:
"hello jane 7 14 1993 female"
How do I tokenize a string like this and similar strings to assign each word to a separate variable if each word separated by a space bar is to go to its own variable like so?:
string greeting = "hello"
string name = "jane"
string month = "7"
string day = "14"
string year = "1993"
string gender = "female"
Thank you in advance.