Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string str_demo("AABBBCCC11AAAFF%%%777AGFGFG");
- string::iterator res;
- res = remove_if(str_demo.begin(), str_demo.end(),
- not1(ptr_fun(isdigit)));
- str_demo.erase(res, str_demo.end());
- cout << str_demo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement