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

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

 

posted @ 2014-10-14 17:21  澄轶  阅读(703)  评论(0编辑  收藏  举报