登录
首页 » c » C语言用指针操作字符串的几个案例(求长度、次数、删除子串等)

C语言用指针操作字符串的几个案例(求长度、次数、删除子串等)

于 2022-03-19 发布 文件大小:4.80 kB
0 71
下载积分: 2 下载次数: 1

代码说明:

都是自己学C的时候写的几个小函数,都包含main函数能独立运行的(将.txt后缀改.cpp就可以在VC里运行了)仿照STL库来的功能,不过没有套C++的壳,有兴趣的可以试试咯 1、求字符串长度的函数实现和测试案例 3、求子串在主串中出现的次数 5、删除特定子串(通过下标索引) 对了,这是用指针实现的,所以可能会有空指针异常的话就自行判断一把咯

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • socket_program_guide
    1.套接字编程原理 1.1 Client/server通信模型 1.2 Windows Sockets规范 1.3 套接字 1.3.1 套接字定义 1.3.2分类 1.3.3 套接字的作用 1.3.4端口与地址 1.3.5 套接口属性 2.基本的Windows Sockets API编程 2.1常用函数 2.2 TCP实例 2.3 UDP实例 2.4 Socket 通信阻塞的解决方法 3.MFC下的Socket编程的类 3.1 CAsyncSocket类 3.2 CSocket类 3.3 Windows Sockets:带存档的套接字的工作方式 3.4 流式套接字通信的操作顺序 3.5 使用 CAsyncSocket 类 3.6 从套接字类派生 3.7 套接字通知 3.8 一个使用CSocket类的网络通信实例 3.8.1 服务器端应用程序设计(ServerDemo) 3.8.2 客户端应用程序设计(项目名称ClientDemo) 4.套接字的托管实现 4.1 System::Net::Sockets 命名空间 4.2 实例:一个新邮件检查器 (1. Socket Programming Principle 1.1 Client/server communications model Soc Windows 1.2 kets norms 1.3 Socket socket definition 1.3.1 1.3.3 1.3.2 classification socket role 1.3.4 1.3.5 addresses and port interface attributes two sets. Basic programming Windows Sockets API function commonly used 2.1 2.2 2.3 TCP example UDP Socket Communications examples 2.4 blocked three solutions. MFC Socket Programming under the category of Class 3.2 3.1 CAsyncSocket CSocke t Windows Sockets 3.3 categories : filing with the way socket 340 socket communication flow sequence of operation to use 3.5 CAsyncSo cket category 3.6 derived from the socket type 3.8 3.7 socket notice the use of a network of CSocket Communication Liaison example 3.8.1 server application design (ServerDemo) 3.8.2 client Application D)
    2020-11-14 14:59:42下载
    积分:1
  • 360UIAndThunderUI
    C#仿造迅雷和360的界面 用的是WPF(C# imitation Xunlei and 360 interface Using WPF)
    2013-09-18 15:27:56下载
    积分:1
  • 51RTX_12864
    使用RXT51操作系统,实现对12864液晶屏幕的刷新(RXT51 operating system is used to refresh 12864 LCD screen)
    2020-06-15 23:40:02下载
    积分:1
  • DEM_neicha
    一个用c#语言编写的关于dem内插的小程序,虽小,但是很完整。(A language with c# interpolation on dem little program that is small, but very complete.)
    2020-12-04 09:19:25下载
    积分:1
  • WSN-time-synchronization-RBS
    无线传感器网络中时间同步算法,RBS算法的仿真源代码(Wireless sensor network time synchronization algorithm, the RBS algorithm simulation source code)
    2020-06-30 16:00:01下载
    积分:1
  • computing-theory-introduction
    《计算理论导引》(作者)[美] Michael Sipser(译者)张立昂 王捍贫 黄雄 机械工业2000年2月第1版.pdf(Computational Theory,(Author) [America] Michael Sipser (translator) Zhang Li Ang Wang Hanpin Wong Hung Machinery Industry in February 2000 1st edition. Pdf)
    2013-09-09 21:01:11下载
    积分:1
  • 3DGPL
    饱含了基本的3D图形库,可以运行在MS DOS环境(contains C sources of a portable basis 3-D library compilant under MS-DOS(WATCOM-C,DJGPP,BORLAND-C),MS-WINDOWS, X-WINDOWS and NeXTStep,)
    2012-09-25 09:27:13下载
    积分:1
  • DarkChannelPrior
    目标物与摄像机距离已知的情况下,计算白天大气能见度距离。(The distance between the object and the camera is known to calculate the visibility distance in daytime.)
    2017-01-20 14:10:32下载
    积分:1
  • jewframwcapabiyity
    手机GSM TI 平台 串口 uart 驱动 源代码(Serial port uart driver source code of mobile phone GSM TI platform)
    2019-01-06 22:55:49下载
    积分:1
  • LPC1768的ADC、CAN、串口通讯以及外部FM3104的配置
    LPC1768是NXP的M3系列,代码是工程已经应用的,已经经过详细的测试,可以使用。欢迎跟大家一起分享,交流经验,共同成长。。。。。。。。。。。。代码中对CAN、串口、外置FM3104进行配置,是在新能源汽车的充电领域进行使用的。
    2023-01-09 02:15:02下载
    积分:1
  • 696518资源总数
  • 105895会员总数
  • 18今日下载