#include<iostream> #include<string> using namespace std; int main() { string str="atfi,,ie,,,idfi,,,oo"; decltype(str.size()) n=0; for(auto c:str) { if(!ispunct(c)) { str[n]=c; n++; continue; } else continue; } while(n!=str.size()) str[n++]='
#include<iostream> #include<string> using namespace std; int main() { string str="atfi,,ie,,,idfi,,,oo"; decltype(str.size()) n=0; for(auto c:str) { if(!ispunct(c)) { str[n]=c; n++; continue; } else continue; } while(n!=str.size()) str[n++]='