首页 > 编程语言 > 详细

c++ <string.h>中包括哪些常用函数

时间:2014-10-14 18:39:40      阅读:250      评论:0      收藏:0      [点我收藏+]

常用函数如下:
strlen          求字符串长度
strcmp    比较2个字符串是否一样
strcat              字符串连接操作
strcpy               字符串拷贝操作
strncat    字符串连接操作(前n个字符)
strncpy    字符串拷贝操作(前n个字符)
strchr            查询子串
strstr            查询字串

 

bubuko.com,布布扣

c++ <string.h>中包括哪些常用函数

原文:http://www.cnblogs.com/suanec/p/4024851.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!