View Code of Problem 55

#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<string>
#include<cmath>

using namespace std;


int main()
{
	string str;
	getline(cin, str);

	char c;
	cin >> c;

	for (int i = 0; i < str.size(); i++) {

		if (str[i] != c)
			cout << str[i];
	}
}

Double click to view unformatted code.


Back to problem 55