include <stdio.h>#include <string.h>#define N 5 //定义符号常量#define MAX_LEN 100 //字符串最大长度 void selectSort(char (*pt)[MAX_LEN],int n) //形参pt为指向二维字符数组的指针{ int i,j,k; char tmp[MAX_LEN]; //临时字符数组 for(i=0;i<n-1;i++)...
include <stdio.h>void change(char *n,int N){ char temp;int i;for(i=0;i<N-1;i++){ for(int j=N-1;j>i;j--){ if(n[j]<n[j-1]){ temp=n[j];n[j]=n[j-1];n[j-1]=temp;} } } }void main(){ char ch[4];gets(ch);change(ch,3);puts(ch);} ...