View Code of Problem 55

#include<iostream>
#include<algorithm>
#include<math.h>
using namespace std;
int main() {
	string h;
	getline(cin,h);
	char c;
	cin>>c;
	while(h.find(c)!=-1)
	{
		h.erase(h.find(c),1);
	}
	cout<<h;
	return 0;
}

Double click to view unformatted code.


Back to problem 55