Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <locale>
- using namespace std;
- int main() {
- char c;
- string s;
- cin >> c;
- cin >> s;
- s.erase(remove(s.begin(), s.end(), c), s.end());
- cout << s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement