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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 02_ReadLayerName
    ArcEnging读取并显示图层(GIS)(ArcEnging reads and displays layers)
    2020-06-24 12:00:02下载
    积分:1
  • 程序
    说明:  这个是热电偶检测模块,内部自带冷端补偿电路,与单片机串口通信,可以解决繁琐的热电偶繁琐的检测电路。(This is a thermocouple detection module, which has its own cold end compensation circuit, and communicates with the serial port of MCU, which can solve the tedious thermocouple detection circuit.)
    2021-02-01 00:56:44下载
    积分:1
  • AN033_Examples_HR7P192_196 V1.7
    说明:  东软载波微电子AN033例程资料,HR7P192/196单片机(Neusoft carrier microelectronics an033 routine information, hr7p192 / 196 microcontroller)
    2021-04-06 11:09:02下载
    积分:1
  • contour
    c#等值线生成程序,自动划分三角形网格,生成等值线、等值面,生成shape文件。(c# contour generating program, divided into triangular mesh automatically generate contours, isosurfaces, generate shape files.)
    2021-04-14 10:48:56下载
    积分:1
  • devcpp
    Differential evoluation 非常好的非线性最优化算法,可用于参数识别,图像处理等。(Differential evoluation very good nonlinear optimization algorithm, can be used for parameter identification, image processing and so on.)
    2008-12-31 03:59:42下载
    积分:1
  • Template Classes
    Template Classes的用法(Template usage)
    2005-02-25 21:31:42下载
    积分:1
  • read_write
    这个程序是一个linux-arm 根文件系统读写驱动程序。(This program is a linux-arm root file system read and write driver)
    2013-10-17 20:15:06下载
    积分:1
  • basicforMusic
    music算法运用于波达方向的测定,波达方向的测定先现广泛用于雷达等应用中.music算法是个很成熟的算法,如今学者们就计算量,精确度上的问题又提出了很多的改进算法.如下为 基本算法,可正确运行(music DOA algorithm applied to the determination of DOA in the first radar is widely used in such applications. music algorithm is a very mature algorithm, Now scholars on the calculation accuracy on the problem makes a lot of improved algorithm. following the basic algorithm, can be correctly operation)
    2007-05-07 16:21:01下载
    积分:1
  • 0MOTOR_CONTROL_003
    该代码可以对电机运行实现 S型加减速运动,驱动步进电机(This code can realize S-type acceleration and deceleration motion for motor operation and drive stepper motor.)
    2020-06-20 08:20:02下载
    积分:1
  • AGV远程呼叫软件
    本资源包含了一个AGV呼叫软件的源代码,使用c#开发,通过读写sqlserver数据库来建立AGV呼叫任务。采用了扁平化的窗口风格,简洁,清新。适合C#初学者作为数据库连接的简单例程。
    2023-03-23 22:10:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载