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