我的編程語(yǔ)句和答案有什么區(qū)別嗎?
#include <stdio.h>
#include <string.h>
int main()
{
??? char s1[100]="";
??? char s2[]="我愛,";
??? char s3[]="慕課網(wǎng)";
??? /*在以下補(bǔ)全代碼*/
??? strcat(s2,s3);
??? strcpy(s1,s2);
??? printf("%s\n",s1);
??? return 0;?? ?
}
#include <stdio.h>
#include <string.h>
int main()
{
??? char s1[100]="";
??? char s2[]="我愛,";
??? char s3[]="慕課網(wǎng)";
??? /*在以下補(bǔ)全代碼*/
??? strcat(s2,s3);
??? strcpy(s1,s2);
??? printf("%s\n",s1);
??? return 0;?? ?
}
2018-08-27
舉報(bào)
2018-08-28
同樣可以,只不過沒按編者的要求罷了