Splitting a string by a character

前端 未结 8 950
夕颜
夕颜 2020-11-27 05:18

I know this is a quite easy problem but I just want to solve it for myself once and for all

I would simply like to split a string into an array using a character as

8条回答
  •  情深已故
    2020-11-27 06:04

    Take a look at boost::tokenizer

    If you'd like to roll up your own method, you can use std::string::find() to determine the splitting points.

提交回复
热议问题