Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string str = "qwe rt 76h.fg,k";
- for (auto s : str) {
- if(s != ' ' && !(s >= '0' && s <= '9') && s != '.' && s != ',' && s != '-')
- cout << s;
- }
- }
Add Comment
Please, Sign In to add comment