摘要: 模板 #include <iostream> #include <string> using namespace std; void getNext(const string& p,int next[]) { int len = (int)p.size(); next[0] = -1; int k 阅读全文