//1.
//字符串比较
//字符串比较,排序for (int i = 0; i < 6 - 1; i++) {
for (int j = 0; j < 6 - 1 - i; j++) {
if (strcmp(strings[j], strings[j + 1]) > 0) {
char temp[20] = {0};
strcpy(temp, strings[j]);
strcpy(strings[j], strings[j + 1]);
strcpy(strings[j + 1], temp);
}
}
}
for (int i = 0; i < 6; i++) {
printf("\n%s", strings[i]);
}