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
相關文章
相關標籤/搜索