Java has a convenient split method:

String str = "The quick brown fox";
String[] results = str.split(" ");

Is there an easy way to do this in C++?

36 Answers
36

Leave a Reply

Your email address will not be published. Required fields are marked *