摘要: 1.应用于查找的find()函数 #include<iostream>#include<string>using namespace std;int main(){ string str; cin>>str; cout<<"ab在str中的位置:"<<str.find("ab")<<endl; // 阅读全文
posted @ 2019-05-03 23:08 xeosys 阅读(133) 评论(2) 推荐(0) 编辑