Vla_DOS

Untitled

Feb 9th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string str = "qwe rt 76h.fg,k";
  9.     for (auto s : str) {
  10.         if(s != ' ' && !(s >= '0' && s <= '9') && s != '.' && s != ',' && s != '-')
  11.             cout << s;
  12.  
  13.     }
  14. }
Add Comment
Please, Sign In to add comment