How to split std::string in C++

  • 0
  • May 29, 2016

There’re a lot of funny and clumsy answer about this question, some of them even convert string to char* and then using strtok to accomplish it.

But here, I figure out a very nice way just using the find function in string class.

 

Leave a Reply