![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我的代码
文章平均质量分 70
yangwucheng
这个作者很懒,什么都没留下…
展开
-
串的模式匹配KMP算法
/* *函数功能 * 求字符串str中从pos位置开始第一次出现pat的位置 *输入参数 * char *str:要查找的字符串 * char *pat:模式串 * int pos:开始位置 *返回值 * 返回字符串str中从pos位置开始第一次出现pat的位置,如果从pos位置开始不存在pat则返回-1 * */int原创 2008-09-11 20:23:00 · 425 阅读 · 0 评论 -
线性链表实现注意事项
使用单链表实现线性表时,应该特别注意插入和删除操作。#define OK 0#define ERROR 1#define OVERFLOW 1typedef int ElemType;typedef struct LNode { ElemType data; struct LNode *next; }LNode, *LinkList;//在含头节点单链表list中第insertI原创 2008-09-12 11:11:00 · 697 阅读 · 0 评论 -
串的模式匹配简单算法
/* *函数功能 * 求字符串str中从pos位置开始第一次出现pat的位置 *输入参数 * char *str:要查找的字符串 * char *pat:模式串 * int pos:开始位置 *返回值 * 返回字符串str中从pos位置开始第一次出现pat的位置,如果从pos位置开始不存在pat则返回-1 * */int simpleIndex(char *str,原创 2008-09-11 19:39:00 · 442 阅读 · 0 评论