How to split std::string in C++

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 Comment

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