基于Visual C++2013拆解世界五百强面试题--题5-自己实现strstr
请用C语言实现字符串的查找函数strstr, 找到则返回子字符串的地址,没有找到返回为空,请用数组操作与指针操作实现
看到题目想到最简单的方法就是母字符串和子字符串比较,如果不同,将指向母字符串的指针向前移动,继续查找,
下面我们分别用数组操作实现,大家可以很容易改成指针操作实现,
国际惯例,参考前面文章新建一个vs2013的工程,经过前面的学习大家已经对开发环境很熟悉了,下面我们直接上代码:
#include <stdio.h>
#include <stdlib.h>
#include <string.h> char *mystrstr(char *Str, const char *SubStr)
{
int StrLen, SubStrLen;
StrLen = strlen(Str);
SubStrLen = strlen(SubStr); //Str长度小于SubStrLen时直接跳过For返回空,
//如果Str长度大于等于SubStr则依次递进比较
for (int i = 0; i <= StrLen - SubStrLen; i++)
{
int j;
for (j = 0; j < SubStrLen; j++)
{
if (Str[i + j] != SubStr[j]) //如果不等就跳出循环
break;
}
if (j == SubStrLen) //如果j == SubStrLen则找到匹配的子串
return &Str[i];
} return NULL;
} int main()
{
printf("%s \n", mystrstr("testxx123", "xx12"));
return 0;
}
运行效果如下图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABUCAYAAABtGukzAAAgAElEQVR4Ae19CZxcVZX3qe4OyJKEICJZABVB2WT5RmSRECAkJCQEEhjZ4kBANLIGRHYBQ4ggEYdFGBARBIdvVBAMWxIMiDD8Zj4ZEjaBDxHSSQAFkgAyJumu7///n3te3aqu7iSI40d8t7revffs59x7z7vvveqqyuGHH1H905/etXff/ZO9/fbbNufJp61arRZvNIwv//Pa/h5Kpd7Jhm49skkPkaqVuk4NXLbKCPytI9D2wgu/s7XWWsv+z2P/Zeuss7adecYZ9sXxR3C9W2trixY+jYwksHIGkzuWTP3sL3pFY+Uk9kzVVVhXSDcSVpow4w/XMlCzZo2s1qrRUTHhbkCYUYPUKNUKggZwY1fj1BXYCFG/C22mIx/vwkI01NZJIYnM2wQ19hNZt3DxFIcUjWBKdbKri70NZDlzYskoukKIhLndlOYInhz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uhGID8U1JJ+NPSD7mVpfxmBMgJNI9DGLX6bfhKcV/x+GdDJLwVAAmjhDqDL7qCpnBJYRqCMwAcwAvwZIOOvARW3/NlHAuhMO4CW1pYPoFulyWUEygisTATqLgH4X4F8FFittlirPhHYUu4AViaKJU0ZgQ9oBLQD0E1AXgvw7A9H9D1A6RJAjwg/oM6VZpcRKCPQcwR0968F9wC4/nkXwAv2AbwEwBOA2geDEqqsygiUEVhtIuAfBNLZnxsALnj+JqAuBJQPPDGsNv6WjpQRKCOQRYCX/cVCZ1PfCZBtBNJ/CWUsZbOMQBmB1SUC6RY/t/y8AcgzP2pdAfgugO2ylBEoI7B6RgC/DQjHsOXnT4MVZ/u4BACKvxBUljICZQRWzwjoJqB+Bow3/Xj250snf7VwP6BMAKvn0JdelRHAhwC5zDs6ar//x6DEdwLwV4I7s98GLANWRqCMwOoVAV0CVPkjoI0X++jHD4SuXi6X3pQRKCMQEdAOoDjLxw0/1NwZsHSUO4CIVVmXEVjtIlDcBOSS1z8ByUV/DshdAS8DylJGoIzA6hmB/wclfERvwddXogAAAABJRU5ErkJggg==" alt="" />
如果有什么问题和疑问可以在下面留言互相探讨。
原题我已经上传到这里了http://download.csdn.net/detail/yincheng01/6461073 ,
解压密码为 c.itcast.cn
基于Visual C++2013拆解世界五百强面试题--题5-自己实现strstr的更多相关文章
- 基于Visual C++2013拆解世界五百强面试题--题3-打印螺旋数组
请用C语言实现 输入N,打印N*N矩阵 比如 N = 3, 打印: 1 2 3 8 9 4 7 6 5 N = 4, 打印 1 2 3 4 12 13 14 5 11 16 ...
- 基于Visual C++2013拆解世界五百强面试题--题2-输出和为一个给定整数的所有组合
请用C语言实现 输出和为一个给定整数的所有组合 启动2012 /* 请用C语言实现 输出和为一个给定整数的所有组合 */ #include <stdio.h> //包含头文件stdio.h ...
- 基于Visual C++2013拆解世界五百强面试题--题1-定义各种类型指针
用变量a给出下面的定义 a)一个整型数 b)一个指向整型数的指针 c)一个指向指针的指针,它指向的指针是指向一个整型数 d)一个有10个整型数的数组 e)一个有10个指针 ...
- 基于Visual C++2013拆解世界五百强面试题--题18-程序结果分析2-终结篇
第二部分程序结果分析,分析流程还是写入代码注释中 分析下面程序的输出: #include <stdio.h> int main() { char *a = "hello" ...
- 基于Visual C++2013拆解世界五百强面试题--题17-程序结果分析1
分析程序结果,分析过程我们就写在程序注释里面. 写出下列代码的输出内容 #include <stdio.h> int inc(int a) { return (++a); } int mu ...
- 基于Visual C++2013拆解世界五百强面试题--题16-进制分析
清写出下列代码的输出内容 #include <stdio.h> int main() { int a = -1, b = -12, c = -123, d = -1234; printf( ...
- 基于Visual C++2013拆解世界五百强面试题--题15-递归相加
有一分数序列: 1/2 , 1/4 , 1/6 , 1/8 ......,用递归的方法,求此数列20项之和. 可以看出规律:每一项位1/n*2 这个很容易些递归,但是要注意一点,使用浮点数相除保存: ...
- 基于Visual C++2013拆解世界五百强面试题--题14-循环删除
有一个数组a[1000]存放0-1000,要求每隔二个数删除一个数,到末尾时循环到开头继续进行,求最后一个被删掉数的原始下标. 看到题目可以用循环链表保存这些数,然后循环删除,大大减少了一些复杂的边界 ...
- 基于Visual C++2013拆解世界五百强面试题--题13-找最大公共子字符串
编程实现:找出两个字符串中最大公共子字符串,如"abccade"和"dgcadde"的最大子字符串为"cad". 如果不考虑效率的话直接比较 ...
随机推荐
- C# 第三方控件 错误 LC-1
删掉项目下面的Properties\licenses.licx 文件
- webService接口大全
中文<->英文双向翻译WEB服务 获得标准数据 Endpoint: http://fy.webxml.com.cn/webservices/EnglishChinese.asmx Disc ...
- Java 动态代理(转)
一.代理模式 代理模式是常用的java设计模式,他的特征是代理类与委托类有同样的接口,代理类主要负责为委托类预处理消息.过滤消息.把消息转发给委托类,以及事后 处理消息等.代理类与委托类之间通常会存在 ...
- 关于 android Intent 传对象和对象数组的一些操作
直接开正题,Intent传递值就是平常那些很简单的,接下来介绍传递 对象,和 对象数组 1 .intent 传递自定义的 对象 - 实体类继承 Serializable public class A ...
- linux杂记(七)linux档案与目录管理指令
1.目录的相关操作:cd,pwd,mkdir,rmdir 路径(PATH): 绝对路径:路径的写法[一定由根目录/写起],例如/usr/share/doc这个目录 相对路径:路径的写法[不是由/写起] ...
- linux之awk
相较于sed 常常作用于一整个行的处理,awk 则比较倾向于一行当中分成数个『字段』来处理. 因此,awk 相当的适合处理小型的数据数据处理呢! awk 通常运作的模式是这样的: [root@linu ...
- IOS 特定于设备的开发:处理基本方向
UIDevice类使用内置的orientation属性获取设备的物理方向.IOS设备支持这个属性的7个可能的值. >UIDeviceOrientationUnknown:方向目前未知. > ...
- Net Core- 配置组件
Net Core- 配置组件 我们之前写的配置都是放置在配置文件Web.config或者app.config中,.net core提供了全新的配置方式,可以直接写在内存中或者写在文件中. .Net C ...
- css table 布局
使用CSS表格 CSS表格能够解决所有那些我们在使用绝对定位和浮动定位进行多列布局时所遇到的问题.例如,“display:table;”的CSS声明能够让一个HTML元素和它的子节点像table元素一 ...
- 传智播客C/C++各种开发环境搭建视频工具文档免费教程
传智播客作为中国IT培训的领军品牌,一直把握技术趋势,给大家带来最新的技术分享!传智播客C/C++主流开发环境免费分享视频文档中,就有写一个helloworld程序的示范.火速前来下载吧 所谓&quo ...