| 
 | 
back to boardwhy this is WA? please hepl Posted by  Tamuna 15 May 2016 23:55 #include<iostream> #include<algorithm> #include<string> using namespace std; int main() {   string text;   while(getline(cin,text))   {       string s="";       for(int i=0;i<text.size();i++)       if(('a'<=text[i]&&text[i]<='z') ||('A'<=text[i]&&text[i]<='Z'))         s.push_back(text[i]);       else       {           reverse(s.begin(),s.end());           cout<<s;           s="";           cout<<text[i];           }           cout<<endl;             }                 //system("pause");             return 0;             }  |  
  | 
|