请编写函数fun(),对长度为7个字符的字符串,除首、尾字符外,将其余5个字符按ASCII码值升序排列。 例如:原来的字符串为BdsihAd,则排序后输出为 BAdhisd。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 试题程序: #include <stdio.h> #include <ctype.h> #include <conio.h> int fun(char*s,int num) { } main() { char s[10]; clrscr(); printf("输入7个字符的字符串:"); gets(s); fun(s,7); printf("\n%s",s); }