摘要: 1.应用于查找的find()函数 #include<iostream>#include<string>using namespace std;int main(){ string str; cin>>str; cout<<"ab在str中的位置:"<<str.find("ab")<<endl; // 阅读全文
posted @ 2020-04-11 18:29 刘通1997 阅读(174) 评论(0) 推荐(0)