- 15
- 0
- 约9.69千字
- 约 24页
- 2017-09-01 发布于浙江
- 举报
字符串比较函数大全
字符串比较函数
2009-05-02 12:06:17| 分类: 技术|字号 订阅
函数名: stpcpy功 能: 拷贝一个字符串到另一个用 法: char *stpcpy(char *destin, char *source);程序例:#include stdio.h#include string.hint main(void){char string[10];char *str1 = abcdefghi;stpcpy(string, str1);printf(%s\n, string);return 0;} 函数名: strcat功 能: 字符串拼接函数用 法: char *strcat(char *destin, char *source);程序例:#include string.h#include stdio.hint main(void){char destination[25];char *blank = , *c = C++, *Borland = Borland;strcpy(destination, Borland);strcat(destination, blank);strcat(destination, c);printf(%s\n, destination);r
原创力文档

文档评论(0)