- 链接地址:https://blog.csdn.net/luoshabugui/article/details/118161654
- 链接标题:C++ 那些被遗漏的细节1 find_first_of-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9545
文章浏览阅读127次。show code#include <iostream>#include <string>int main(){ std::string str = "hello world"; std::string sign = "wo"; std::cout << "position: " << str.find_first_of(sign) << std::endl; return 0;}结果position: 4
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除