Contact: aviboots(AT)netvision.net.il
38,488 questions
50,155 answers
573 users
#include <iostream> #include <algorithm> int main() { std::string str = "c++ c c# javascript python"; char ch = 'c'; str.erase(std::remove(str.begin(), str.end(), ch), str.end()); std::cout << str; } /* run: ++ # javasript python */