压死了累


私信TA

用户名:H2030819040

访问量:16203

签 名:

剑光如我,斩尽芜杂

等  级
排  名 479
经  验 4588
参赛次数 16
文章发表 44
年  龄 0
在职情况 学生
学  校 贺州学院
专  业

  自我简介:


解题思路:

gets()输入

strcat()连接

puts()输出即可


注意事项:

记得头文件加上#include <string.h>

参考代码:

#include <stdio.h>
#include <string.h>
int main()
{
	char a[100],b[100];
	gets(a);
	gets(b);
	strcat(a,b);
	puts(a);
	return 0; 
 }


 

0.0分

0 人评分

  评论区