How to split the strings in vc++?

后端 未结 6 1836
攒了一身酷
攒了一身酷 2021-01-24 03:10

I have a string \"stack+ovrflow*newyork;\" i have to split this stack,overflow,newyork

any idea??

6条回答
  •  半阙折子戏
    2021-01-24 03:52

    This site has a string tokenising function that takes a string of characters to use as delimiters and returns a vector of strings.

    Simple STL String Tokenizer Function

提交回复
热议问题