View Code of Problem 55

#include <stdio.h>
#include <string.h>
int main()
{
	int i;
	char b;
	char a[10000];
	gets(a);       // 可能是因为题目认为回车也是个字符 所以要用gets输入 因为gets是以回车作为结束符号的 其他的是以空格为结束符号
	scanf("%c",&b);   
	int len=strlen(a);
	for(i=0;i<len;i++)
	{
		if(a[i]!=b)
		{
			printf("%c",a[i]);
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 55