NoFear
随笔 - 48, 文章 - 0, 评论 - 6, 阅读 - 58938

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

11 2011 档案

摘要:View Code char* _strstr(char* haystack,char* needle){ //逐位 for(;;++haystack) { char* h = haystack; for(char* n = needle;;++n,++h) { //匹配段空返回 if(!*n) return haystack; //1.先找到需要比较的开头 2.比较当前字符 if(*h !=*n) ... 阅读全文

posted @ 2011-11-24 22:06 Fear_Hao 阅读(130) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示