C++ 那些被遗漏的细节1 find_first_of-CSDN博客

网站介绍:文章浏览阅读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