#include <stdio.h>
#include <string.h>
int main()
{
char s1[200], s2[200];
int i, j;
gets(s1);
gets(s2);
for (i = 0; s1[i]; i++)
{
for (j = 0; s2[j]; j++)
if (s1[i] == s2[j])
{
strcpy(s1 + i--, s1 + i + 1);
break;
}
}
puts(s1);
system("pause");
return 0;
}
没办法输出结果
![[委屈]](/static/emoticons/u59d4u5c48.png)


只出现这样的情况