摘要: /* ************************** * 字符串模式匹配 * KMP 算法实现 * * ***************************/#include #include int KMP(const char *pDest,const char *pPattern);void GetNextArr(const char *pPattern, int *pNext,int nPatternLen);/* *************** * 测试函数 * 输入两个参数 * argv[1]:匹配的目标字符串 * arg[2]:需要匹配的字符串 * * ********. 阅读全文
posted @ 2013-04-19 10:08 _ccx 阅读(211) 评论(0) 推荐(0) 编辑