stl find_first_not_of()函数

1.头文件#include<cstring>

2.功能

#include <iostream>     
#include<cstring> 
using namespace std;
int main ()
{ string s="aaa";
cout<<s.find_first_not_of(s[0],1);//s[0]为子串,从下标为1开始找 
//找字串中有而原来的字符串中没有的 ,最先出现的那个下标 
  return 0;
}
无聊就学习 反正没事干
原文地址:https://www.cnblogs.com/miao-xixixi/p/13441441.html