string类型的子字符串反向查找

思路 先用getline()函数读入string类型的字符串s1,s2.而后用rfind()查找函数进行查找ios 代码 #include<iostream> #include<string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s1
相关文章
相关标签/搜索