- 1
- 0
- 约1.12万字
- 约 13页
- 2023-08-24 发布于四川
- 举报
函数名: stpcpy
功 能: 拷贝一个字符串到另一个
用 法: char *stpcpy(char *destin, char *source);
程序例:
#include stdio.h
#include string.h
int main(void)
{
char string[10];
char *str1 = abcdefghi;
stpcpy(string, str1);
printf(%sn, string);
return 0;
}
函数名: strcat
功 能: 字符串拼接函数
用 法: char *strcat(char *destin, char *source);
程序例:
#include string.h
#include stdio.h
int main(void)
{
char destination[25];
char *blank = , *c = C++, *Borland = Borland;
strcpy(destination, Borland);
strcat(destination, blank);
strcat(destination, c);
printf(%sn, destin
您可能关注的文档
最近下载
- 矿山工程监理规划.pdf VIP
- 《房屋建筑学》课程设计任务书(一梯两户六层全套图纸).pdf VIP
- 《喜看稻菽千重浪》.ppt VIP
- 2023年北京林业大学生态文明建设与管理考博真题、参考书单、联系导师、申请材料、考核内容.pdf VIP
- 道德与法治六上第7课 未成年人需要特殊保护 课件(共2课时)(统编版新教材2027).pptx
- 2025年教师资格证科目三《体育与健康》真题试卷及答案.docx VIP
- (高清版)DB5119∕T 14-2020 通江银耳等级规格 .pdf VIP
- 电力工程监理规划范本.docx VIP
- 03S402室内管道支架及吊架图集.pdf VIP
- 仓储班次周期维护问题复盘与改进跟踪表.docx VIP
原创力文档

文档评论(0)