摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2203/*char* strstr(const char* a,constchar* b) 在a中寻找第一次出现b的位置如果出现,返回位置,如果不出现,返回空指针;利用这一特点,我们将s1字符串长度加长一部分(s2的长度),加长的内容为s1的前strlen(s2)个字符;最后用函数判断s2是否在s1中出现;over~~*/ #include #include #include #include #include #include #include #define maxn 1000... 阅读全文
posted @ 2013-03-08 13:37 简洁是智慧的灵魂 阅读(169) 评论(0) 推荐(0)