C++实现统计子字符串的方法 题目描述:输入两个字符串,统计一个字符串在另一个字符串中出现的次数 如:输入:woshibushixiannv shi 输出:2 #include <iostream> #include <cstring> using namespace std; int findStr2fromStr1(char *str1, char *str2) { int n; char *p, *r