博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C 库函数 char *strcat(char *dest, const char *src) 把 src 所指向的字符串追加到 dest 所指向的字符串的结尾。
阅读量:3934 次
发布时间:2019-05-23

本文共 270 字,大约阅读时间需要 1 分钟。

**下面的实例演示了 strcat() 函数的用法。

#include <stdio.h>

#include <string.h>

int main ()

{
char src[50], dest[50];

strcpy(src, “This is source”);

strcpy(dest, “This is destination”);

strcat(dest, src);

printf(“最终: |%s|”, dest);

return(0);

}**

输出

|This is destinationThis is source|

转载地址:http://oyegn.baihongyu.com/

你可能感兴趣的文章
悦读:重新定义公司-谷歌是如何运营的
查看>>
研发主管的烦恼:周一早晨延迟的项目会议
查看>>
研发主管的烦恼:难以执行的绩效考核
查看>>
精益Scrum(五)
查看>>
精益Scrum(六)
查看>>
精益Scrum(七)
查看>>
软件测试管理—如何写好软件测试计划书
查看>>
解读一名软件测试经理所需要具备的能力
查看>>
有效的软件测试度量
查看>>
软件评测和测试国家现行标准
查看>>
理解测试策略
查看>>
机器学习界大牛林达华推荐的书籍
查看>>
path变量备份
查看>>
Lesson2.2 & 2.3 Maya command reference & quick help
查看>>
lesson 2.4 - Converting MEL Commands to Python
查看>>
Lesson3.2 variables
查看>>
3.4.2 - Operators & 3.4.3 division and truncation
查看>>
3.6 - Maya Commands: setAttr
查看>>
3.7.1 - Strings
查看>>
3.7.4 - Indexing and Slicing Strings
查看>>