编写一个函数,将两个字符串连接起来。(不能用strcat函数)。
来源:互联网 发布:淘宝倒卖赌博游戏币 编辑:程序博客网 时间:2024/05/21 06:55
编写一个函数,将两个字符串连接起来。(不能用strcat函数)。
#include <stdio.h>
#include <string.h>
char* stringcat(char* strDest ,const char*strSrc)
{
char* address=strDest+strlen(strDest);
while(((*address++) = (*strSrc++)));
return strDest;//为了实现链式操作,将目的地址返回
}
int main()
{
char a[100] = "Hello ";
char* b = "Beijing";
stringcat(a, b);
printf("%s\n",a);
return 0;
}
0 0
- 编写一个函数,将两个字符串连接起来。(不能用strcat函数)。
- 7.13 编写一个程序,将两个字符串连接起来,不要用strcat函数。
- 实验5-7 编写程序,将两个字符串连接起来,不要用strcat函数。
- 将两个字符串连接起来,不要用strcat函数。
- 编一个程序,将两个字符串连接起来,不要用strcat函数。
- 写一个函数,将两个字符串连接,即编写一strcat函数
- 输入两个字符串,不用系统提供的函数strcat,自定义函数将两个字符串连接起来。
- 编一程序,将两个字符串连接起来,不要用strcat函数。
- 【c语言】将两个字符串连接起来,不要用strcat函数
- 编一程序,将两个字符串连接起来,即实现strcat函数功能
- 习题 6.13 编一程序,将两个字符串连接起来,不要用strcat函数。
- 不用strcat函数,编写程序,将两个字符串串接起来。
- 将两个字符串连接起来,不要用strcat
- 编一程序,将两个字符串连接起来,用strcat.
- 将两个字符串连起来,不用strcat函数,新手版
- 连接两个字符串不用strcat函数
- 两个字符串连接,不用strcat函数
- 实现两个字符串的连接(strcat函数)
- Markdown语法的简要规则(for Atom)
- java之学习路线
- 再谈图的存储方式(邻接矩阵,邻接表,前向星)
- Milk<hdoj1070>
- 惯性传感器的另(qí)类(pā)应用
- 编写一个函数,将两个字符串连接起来。(不能用strcat函数)。
- UVA - 10014 Simple calculations
- 有上下界的流
- java-jni-02-Design-Overview
- centos 7 下的python psutil模块
- 剑指offer——按之字形顺序打印二叉树
- HDU - 4730 We Love MOE Girls
- simulator
- Proximal Algorithms--Moreau-Yosida regularization