Visual C++字符串有类似爆炸的东西吗?
我有一个 CString,我想像 phpexplode() 那样分解它,我在 C++ 中还没有见过这样的东西。有没有人有一种简单的方法可以根据分隔符将字符串拆分为子字符串?
I have a CString that I'd like to break up much the way a php explode() would do, I haven't seen anything like this in C++. Does anybody have an easy way to split up a string into substrings given the separator character?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有直接的等效项,但 Tokenize 方法类似,并且可以用作函数的基础,像 PHP 的explode 一样工作。
There's no direct equivalent, but the Tokenize method is similar, and can be used as the basis of function to work like PHP's explode.