字符串复制

#include <stdio.h>
#include <string.h>
#define N 80
void main()
{
char a[N],b[N];
printf("Enter string 2:");
gets(a);
strcpy(b,a);
printf("Output string 1:");
puts(b);
return 0;
}

posted @ 2018-12-25 23:46  六晨  阅读(106)  评论(0)    收藏  举报