#include
char * fun(char s[],char c)
{int i,j;
for(i=0;s[i]!=0;i++)
{if(s[i]==c)
for(j=i;s[j]!=0;j++)
s[j]=s[j+1];
}
return s;
}
int main()
{char str[80];
char ch;
gets(str);
scanf("%c",&ch);
fun(str,ch);
printf("%s\n",str);
return 0;
}
本文来源:https://www.2haoxitong.net/k/doc/2a80751502768e9951e738f6.html
文档为doc格式