串:KMP算法及改进的实现(C语言)

#include<stdio.h> #include<stdlib.h> #include<string.h> #define MaxSize 50 typedef struct Str{ char ch[MaxSize+1]; int length; }Str; //KMP算法 void getNext(Str substr,int next[]){ int j=1; next[1]=
相关文章
相关标签/搜索