#include <stdio.h> #include <stdlib.h> // 包含isalpha()函数的头文件 #include <ctype.h> // 包含qsort()函数的头文件 //比较两个字符并忽略大小写的函数 int compare(const void* a, const void* b) { // 将参数转换为 char指针并解引用, 将两个字符都转换为小写, 然后相减得到差值 return tolower(*(char*)a) - tolower(*(char*)b); } int main() { char str[1000],...