Advertisement
andruhovski

Remove-Erase Idioma

Apr 26th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1.     string str_demo("AABBBCCC11AAAFF%%%777AGFGFG");
  2.     string::iterator res;
  3.     res = remove_if(str_demo.begin(), str_demo.end(),
  4.         not1(ptr_fun(isdigit)));
  5.     str_demo.erase(res, str_demo.end());
  6.     cout << str_demo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement