#include#include #include #include using namespace std;int Vt[30],Vn[30];vector P;//char str[100];int tl,nl;void init(){ tl=nl=0;}void split(string str,string p){ int i; if(str=="") return; str+=p; int len = str.size(); int pos = str.find(p); cout< < ='a') Vt[str[i]-'a']++; else if(str[i]!='S' && str[i]<='Z' && str[i]>='A') Vn[str[i]-'A']++; } split(str,","); //test(); }}void output(){ int i; cout<<"(Vt={ "; for(i=0;i<26;i++) { if(Vt[i]) { cout<<(char)('a'+i);i++;break; } } for(;i<26;i++) { if(Vt[i]) cout<<","<<(char)('a'+i); } cout<<"},Vn={S"; for(i=0;i<26;i++) { if(Vn[i]) cout<<","<<(char)('A'+i); } cout<<"},P={ "; for(vector ::iterator it = P.begin(); it!=P.end();) { cout<<","<<*(it);it++; } cout<<"},S)"<