#include <iostream>
#include <string>

using namespace std;

int main()
{
    string line;
    char x;
    cout << "原字符串是：";
    getline(cin, line);
    cout << "待删除的字符是：";
    cin >> x;

    int size = line.size();
    int pos = line.find(x);
    while (pos != string::npos)
    {
        line.erase(pos, 1);
        pos = line.find(x, pos);
    }

    cout << "处理后的字符串是：" << line << endl;

    return 0;
}
