kmp算法实现字符串匹配

今天晚上知道了这个算法,看了后凭记忆理解本身又写了一遍,往后会加上注释和思路ios #include<iostream> #include<cstdio> #include<string> #include<cstring> using namespace std; void find_fun(string pstr, int *num){ int i; int len = pstr.leng
相关文章
相关标签/搜索