SHARE
TWEET

4

a guest Feb 24th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main () {
  4. string s;
  5. getline(cin,s);
  6. int ssize = s.size();
  7. for (int i=0 ; i < ssize ; i++)
  8. {
  9.     if (ispunct(s[i]))
  10.     {
  11.         s.erase(i--, 1);
  12.         ssize = s.size();
  13.     }
  14. }
  15.  
  16. cout<<s<<endl;
  17.  
  18. return 0; }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top