Lets say i have a string of "Hello My Name is John" I want to put this data into an array such that the elements of this array are {"Hello", "My", "Name", "is", "John"}
I am using C++, and the actual problem I'm dealing with is a bit more complicated than this, but this is where I'm stuck.
Have you considered using the "C" strtok function? Here is an example: