   Brekaing up System::String into seperate words (managed C++)
  If I have a string as follows:System::Strings^ name = "John Smith";How can I break it up into two seperate words "John" and "Smith"?So that it becomes something like:System::String^ fname = "John";System::String^ lname = "Smith";thanks for any help :)   
  In C# you could use name.Split(' ');Since It's managed C++, the equivalent (if not same) should exist.EDIT : Also split return the modified string. It doesn't apply the change on the current string.   ;  Split returns a managed array of strings, not a string, and it most certainly exists for Managed C++ (as System.String is a framework class and will exist in any language that is using the framework).   ;  You could insert your string into a string stream and then extract each word from it:#include <iostream>#include <string>#include <sstream>int main(){    std::stringstream stream;    std::string full("John Smith"), first, last;    stream << full;    stream >> first >> last;    std::cout << "First: " << first << std::endl    << "Last:  " << last << std::endl;    return 0;};  yep, split worked.Thanks guys :)   