substr() method in C++

后端 未结 1 1820
清歌不尽
清歌不尽 2021-01-29 15:25

I am trying to substring some expressions into individual tokens such as !, &, | (), etc. What I am having trouble with is the fact that when I try to make a sub-string of \

相关标签:
1条回答
  • 2021-01-29 15:49

    I did not understand your question well but if you want to get

    (S&J|R)
    

    You should do:

    name.substr(10,7)

    The second parameter is the length.

    0 讨论(0)
提交回复
热议问题