拓展三 KMP算法 #include <stdio.h> typedef char* String; void get_next(String T,int *next) { int j=0; int i=1; next[1]=0; while(i<T[0