1.比较函数 intcmp(constvoid* x,constvoid* y){//因为数组里存的是字符串的地址,所以要强制类型转换成(char **)//然后再解引用一下才是字符串的地址returnstrcmp(*(char**)x, *(char**)y); } 2.主函数 intmain(){char* dir[] = {"aaaa b","aaaa c","dd a","zz d","fff aa","ab c...