View Code of Problem 55

#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include<stdio.h>
#include<string>
#include<string.h>
using namespace std;
int main()
{
	char s[100];
	gets(s);
	char a;
	scanf("%c", &a);
	int len = strlen(s);
	for (int i = 0; i < len; i++) {
		if (s[i] != a) {
			printf("%c", s[i]);
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 55