网站介绍:文章浏览阅读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
- 链接地址:https://blog.csdn.net/luoshabugui/article/details/118161654
- 链接标题:C++ 那些被遗漏的细节1 find_first_of-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2755
- 网站标签:C++ 那些被遗漏的细节1 find_first_of