Description
不借用任何字符串库函数实现无冗余地接受两个字符串,然后把它们无冗余的连接起来。
Input
每一行包括两个字符串,长度不超过100。
Output
可能有多组测试数据,对于每组数据,
不借用任何字符串库函数实现无冗余地接受两个字符串,然后把它们无冗余的连接起来。
输出连接后的字符串。
Sample Input
abc def
Sample Output
abcdef
思路
水题...
代码
#include<stdio.h>
#define MAX 200
int main()
{
char str1[MAX],str2[MAX];
while(~scanf("%s%s",str1,str2))
{
printf("%s%s\n",str1,str2);
}
return 0;
}