69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
int main()
{
char s_temp[] = "\tHello World!\n";
char s_text[100] = {NULL};
scanf("%s",s_text);
printf("%s\n",strcat(s_text,s_temp));
printf("%s\n",s_temp);
return 0;
}
#include <stdio.h>
int main()
{
char ch[256]; //定义成字符数组就可以了
scanf("%s", ch); //注意没有&
printf("%s", ch);
return 0;
}