Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include<string>#include <iostream>#include <vector>using namespace std;int main(){vector<string> res;string word="";char c;while (cin>>noskipws>>c){if(isalpha(c)){if(c>='A'&&c<='Z')c +=32;word +=c;}else {if(word!=""){res.push_back(word);word="";}if(c!=' '){string str;if(c==44) str="44";else if(c==46) str="46";else if(c==10) str="10";res.push_back(str);}