Skip to main content
Notice removed Reward existing answer by user184968
Bounty Ended with user35978's answer chosen by CommunityBot
Notice added Reward existing answer by user184968
Bounty Started worth 50 reputation by CommunityBot
Question Protected by T.C.
edited tags
Link
DavidRR
  • 19.1k
  • 26
  • 111
  • 196
edited tags
Link
Bill the Lizard
  • 403.1k
  • 210
  • 570
  • 886
Source Link
Bill the Lizard
  • 403.1k
  • 210
  • 570
  • 886

How do I tokenize a string in C++?

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++?