编写实现函数strcat功能的程序

来源:互联网 发布:php评论回复功能 编辑:程序博客网 时间:2024/09/21 09:02

/**********************************************************
  编写实现函数strcat功能的程序

  <Edison wong>. QQ139767
**********************************************************/
#include <stdio.h>
#include <string.h>
void main()
{
 char a[100];
 char b[50];
 int c=0,d=0;
 printf("请输入两个字符串/n");
 gets(a);
 gets(b);
 while(a[c]!='/0')c++;
 while((a[c++]=b[d++])!='/0');
 printf("连接后的函数是%s!/n",a);
}