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