View Code of Problem 55

#include<stdio.h>
#include<math.h>
#include<ctype.h>
#include<string.h>
#include<iostream>
using namespace std;
#include<algorithm>
int main()
{
	char str[100];
	char a;
	gets(str);
	a=getchar();
	int len = strlen(str);
	for (int i = 0; i < len; i++)
	{
		if (str[i] != a)
			cout << str[i];
	}
}

Double click to view unformatted code.


Back to problem 55