摘要: #include<stdio.h> void comp(char*sub,char*str) { int i=0,j=0; //通过子串指针移动的次数等于字串的长度,实现匹配成功与否 //下面代码是直接使用子串和主串是否同时用完子串长度的循环实现 while(*str){ for(i=0;*(sub 阅读全文
posted @ 2024-05-04 17:04 JianYuBlog 阅读(6) 评论(0) 推荐(0) 编辑