see declaration of 'strcat'怎么解决#include #includeint main(){char str1[] = "hello";char str2[]="world!";char str3[20];strcat(str1,str2);printf("str3[20]=%s\n",str3);return 0;}代码

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 12:39:18
seedeclarationof''strcat''怎么解决#include#includeintmain(){charstr1[]="hello";charstr2[]="world!";charstr

see declaration of 'strcat'怎么解决#include #includeint main(){char str1[] = "hello";char str2[]="world!";char str3[20];strcat(str1,str2);printf("str3[20]=%s\n",str3);return 0;}代码
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;
}
代码

see declaration of 'strcat'怎么解决#include #includeint 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;
}