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/05/16 06:26:58
see declaration of 'strcat'怎么解决#include #includeint main(){char str1[] =

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;
}