书写函数void sort(char *s[],int n),利用指针数组,采用冒泡法或选择法排序,实现对n个字符串的升序排列。书写函数void print(char *s[],int n),实现对n个字符串的输出。主函数中数组定义char *a[5]={"hello","world","she","best","mind"};调用sort()函数实现字符串的升序排列,最后调用print()函数输出n个排好序的字符串。
无
逐行输出升序排列的多个字符串
无
best hello mind she world