loong qiang
像风一样自由
摘要: 详见kmp算法解释http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html 阅读全文
posted @ 2014-07-12 23:59 loong qiang 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 字符串朴素匹配法相等情况int index(const char * str1, const char * str2, int pos){ int i = pos; int j = 0; while(i = strlen(str2)) // matched and retu... 阅读全文
posted @ 2014-07-12 15:26 loong qiang 阅读(289) 评论(0) 推荐(0) 编辑