我怎样才能得到:
connect
100
username
example
来自这个字符串:
ngg://connect>100/username>example/
最佳答案
使用带有参数 "/"
和 ">"
和 std::string 的
与找到的索引。std::string::find
: :substr
这是一个好的开始。
关于c++ - 解析定界字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11273989/