求助如何寫啊
#include
#include
#define SIZE 30
void main(){
char str1 [SIZE];
char str2 [SIZE];
char *p;
int len2;
printf("Input first string:");
scanf("%s",str1);
printf("Input deleted string:");
scanf("%s",str2);
len2 = strlen(str2);
while(p = strstr(str1,str2)){
strcpy(p,p+len2);
}
printf("result string:%s\n",str1);
}