作业帮 > 综合 > 作业

see declaration of 'strcat'怎么解决

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/22 16:45:50
see declaration of 'strcat'怎么解决
#include
#include
int main()
{
char str1[] = "hello";
char str2[]="world!";
char str3[20];
strcat(str1,str2);
printf("str3[20]=%s\n",str3);
return 0;
}
代码
#include
#include
int main()
{
char str1[] = "hello";
char str2[]="world!";
char str3[20];
strcpy(str3,str1);
strcat(str3,str2);
printf("str3[20]=%s\n",str3);
return 0;
}