#include
int main(void)
{
int i, j = 0;
char ch;
char str[100];
printf("请输入字符串:\n");
scanf("%s", str);
printf("请输入一个字符:\n");
scanf(" %c", &ch);
for (i=0; str[i]!='\0'; i++)
{
if (str[i] != ch)
{
str[j++] = str[i];
}
}
str[j] = '\0';
printf("%s\n", str);
return 0;
}
没有奖励分的吗?