string.find()函數的用法總結

1.查找特定的字符、字符串ios 返回找到的字符串第一個字符的位置spa #include<iostream> using namespace std; int main(){ string s=="abcd"; if(s.find("ab")==1) cout<<"have it"<<endl; else cout<<"no"<<endl; return 0; } 2.
相關文章
相關標籤/搜索