KMP算法c语言实现

时间:2012-10-06 09:47:48
【文件属性】:
文件名称:KMP算法c语言实现
文件大小:16KB
文件格式:JPG
更新时间:2012-10-06 09:47:48
匹配数组 #include #include #include typedef struct { int length; char *p; }sstring; int *get_next (sstring s1) { int m = s1.length; char *p=s1.p; int j = 0; int *x=(int *)malloc(m*sizeof(int)); x[1] = 0; int i = 1; printf("%4d",x[i]); while(i 立即下载

网友评论

  • 可以 !虽然很难看懂