愿你出走半生,归来仍是少年

^_^

怀揣梦想,永不放弃

导航

2015年2月1日 #

strlen() 函数

摘要: strlen() 函数通常用来计算字符串的长度,但是今天突然发现个奇怪的现象。如下所示:#include #include #include int main(){ char *str; int n = 0; str = (char *)malloc(30 * sizeof(cha... 阅读全文

posted @ 2015-02-01 01:27 Jeffrey.Downhouse 阅读(561) 评论(0) 推荐(0)

查找字符串的 KMP 算法

摘要: 查找字符串是我们平常编程过程中经常遇到的,现在介绍一种查找字符串算法,增加程序的执行速度。通常我们是这么写的:/* content: search a string in a othor string author: lw date: 2015-01-30 target: kmp a... 阅读全文

posted @ 2015-02-01 01:19 Jeffrey.Downhouse 阅读(195) 评论(0) 推荐(0)

运筹帷幄之中 | 决胜千里之外