题面
输入 ()个等长字符串(长度不超),按照字符串的大小按升序排序。定义函数 Sort 调用qsort 按要求排序。
//********** Specification of Sort **********
#define LEN 80
void Sort(char (*a)[LEN+1], int n);
/* PreCondition:
a is row pointer which points to an array of strings
(represented by a two-dimensional array of chars),
and n is the count of strings
PostCondition:
a is sorted satisfying to the specification
*/
样例
输入
3 ecnu ECNU Ecnu
输出
ECNU Ecnu ecnu