#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
char name[10][20]={"zhao","qian","sun","li","zhou","wu","zheng","wang","feng","chen"};
for (int i=0; i<9; i++)
{
for (int j=0; j<9-i; j++)
{
if (strcmp(name[j], name[j+1])>0)
{
char temp[20]={0};
strcpy(temp, name[j]);
strcpy(name[j], name[j+1]);
strcpy(name[j+1], temp);
}
}
}
for (int i=0; i<10; i++)
{
printf("%s ",name[i]);
}
return 0;
}