set排序:
#include<stdio.h>
#include<string.h>
#include<iostream>
#include<set>
#include<string>
using namespace std;
set<string >s;
int main()
{
string a;
while(getline(cin,a))
{
for(int i=; i<a.size(); i++)
{
string tmp;
if(!isalpha(a[i]))continue;
while(isalpha(a[i]))
{
if(a[i]>='A'&&a[i]<='Z')
tmp+=a[i]+;
else tmp+=a[i];
i++;
}
s.insert(tmp);
}
}
for(set<string>::iterator it=s.begin(); it!=s.end(); it++)
{
cout<<*it<<endl;
}
}