# include & ltstdio.h & gt
# include & ltstring.h & gt
# include & ltstdlib.h & gt
typedef結構{
char c【105】;
}線;
a線【10】;
int cmp(常量void *x,常量void *y)
{
char * m =(Line *)x)-》;c;
char * n =(Line *)y)-》;c;
return strcmp(m,n);
}
int main()
{
int L、M、I、x、y、ans
for(I = 0;我& lt10;i ++)
scanf(“% s“,a【I】。c);
qsort(a,10,sizeof(a【0】),CMP);
for(I = 0;我& lt10;i ++)
printf(“% s \ n“,a【I】。c);
返回0;
}