实现strcat的功能【不可以使用strcat函数】
来源:互联网 发布:vscode 拆分编辑器 编辑:程序博客网 时间:2024/05/11 04:59
#include <stdio.h>
int main(int argc, const char *argv[])
{
char a[32] = "hello";
char b[] = " world";
int i = 0, j = 0;
while(a[i] != '\0')
{
i++;
}
while(b[j] != '\0')
{
a[i] = b[j];
i++;
j++;
}
a[i] = '\0';
printf("a = %s\n",a);
return 0;
}
int main(int argc, const char *argv[])
{
char a[32] = "hello";
char b[] = " world";
int i = 0, j = 0;
while(a[i] != '\0')
{
i++;
}
while(b[j] != '\0')
{
a[i] = b[j];
i++;
j++;
}
a[i] = '\0';
printf("a = %s\n",a);
return 0;
}
0 0
- 实现strcat的功能【不可以使用strcat函数】
- 编写实现函数strcat功能的程序
- 自己模拟实现strcat函数的功能
- strcat()函数的实现
- strcat函数的实现
- strcat 函数的实现
- strcat函数的实现
- strcat函数的使用
- strcat函数的使用
- 用函数实现strcat功能
- 用函数实现strcat功能
- 自己模拟strcat库函数写的功能函数my_strcat实现strcat的功能,完整代码
- 编写程序实现strlen()函数,strcmp(),strcpy(),strcat()的功能
- 自定义函数实现strcpy,strcat,strcmp的功能
- 编写程序实现库函数strcat的功能
- strcat函数实现
- strcat函数C实现
- strcat函数实现
- 人生的灯塔--写在25岁之后
- selinux禁用后系统无法正常启动的问题
- Android 5.x Theme 与 ToolBar 实战
- malloc与free的配对使用的注意
- Android 的Context和application
- 实现strcat的功能【不可以使用strcat函数】
- JAVA学习之——ArrayList实现原理
- Android之ListView使用方法-ArrayAdapter-SimpleAdapter-BaseAdapter
- windows配置git之二:首次clone
- android开发步步为营之104:文字加阴影效果和描边效果的实现
- Happy 2006 (poj_2773) 欧几里德
- MongoDB内部结构
- 选择排序法(C#)
- 从BaseActivity与BaseFragment的封装谈起