計算一個字符在一個字符串中出現的次數

#include<iostream> #include<string> #include <algorithm> using namespace std; int fun(string str1, char str2) {     char str3=0;     int len=0,p=0;     if (str2 >= 'a'&&str2 <= 'z')         str3 = s
相關文章
相關標籤/搜索