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

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

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

代码说明:

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

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

发表评论

0 个回复

  • mianyi
    免疫算法的matlab代码,应该比较好用,谢谢支持!(immune algorithm Matlab code, it should be more convenient, thank you support!)
    2007-03-20 12:20:00下载
    积分:1
  • single-neuron-adaptive-PID
    用C语言实现“单神经元自适应PID控制”(Using C language to achieve the single neuron adaptive PID control)
    2021-04-21 10:38:50下载
    积分:1
  • CUDA C编程权威指南_源码
    说明:  (全 全 全)CUDA C编程权威指南_源码(Programming Authoritative Guide_Source Code)
    2021-01-05 12:38:54下载
    积分:1
  • 2downbank0120EmpireCMS
    说明:  在建国60周年举国欢庆的日子里,帝国迎来了高性能、高容量的v6.0版网站内容管理系统正式版隆重发布!作为web内容管理解决方案的提供商(The country to celebrate the 60th anniversary of the day, the Empire ushered in a high-performance, high-capacity version of Web Content Management System v6.0 full version grand release! As a web content management solutions provider)
    2011-03-22 19:28:49下载
    积分:1
  • BichoHunting
    一个有趣的小游戏,基于GDI,CodeBlocks开发而成.(An interesting little game, based on GDI, CodeBlocks developed with.)
    2010-02-24 09:49:27下载
    积分:1
  • ParseS57
    电子海图程序源代码,可以对S57格式文件进行解析,希望高手能将显示做出来(Electronic Chart source code, you can format documents on S57 resolve, I hope you can show up to do)
    2021-01-31 10:48:37下载
    积分:1
  • 24cxxx
    本程序是24C128的51单片机读写程序。 测试芯片:at89s52 晶振:12MHz有keil、proteus文件和24c128的英文文档和详细注释(This procedure is 24C128 microcontroller to read and write program 51. Test chip: at89s52 crystal: 12MHz with keil, proteus file and 24c128 documents and detailed notes in English)
    2010-09-02 15:44:51下载
    积分:1
  • 文明2代码
    文明2的代码,给大家做参考。C/C++语言的项目。也没有什么更多介绍了,我自己也在学习,大家相互交流。
    2022-02-14 02:28:01下载
    积分:1
  • 3月5日测试
    说明:  同步输出多路PWM波控制多个电机,最终通过上位机串口通信控制(Synchronized output multi-channel PWM wave control of multiple motors)
    2020-06-21 22:00:02下载
    积分:1
  • lcd_clock
    我在工作学习中使用的c语言代码,希望大家看看,哈哈!(I am working and learning to use the c language code I hope you take a look, ha ha!)
    2010-01-18 14:11:40下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载