void sort(char *a[]); void print(char *a[]); int main() { char *a[] ={"ceo","define","basic","abc","empty"}; printf("原来的序列是:\n"); print(a); sort(a); printf("\n排序后的序列是:\n"); print(a); printf("\n"); return 0; } void sort(char *a[]) { int ...
void mian(){ char a[10][20],b[20];int i,j,k;printf("输入字符串\n");for(i=0;i<10;...
include<stdio.h> include<string.h> int main(void){ char str[1000][10];char temp[100];int i, j, n;printf("请输入你要输入的字符串的个数:n=");scanf("%d", &n);printf("请输入字符串:");for(i=0; i<n; ++i)scanf("%s", str+i); //输入指针 str+i for(j=0...
*tmp=NULL; int i,j; for(i=0;i<10;i++) p[i]=co[i]; printf("请输入10个字符串:\n"); for(i=0;i<10;i++) gets(co[i]); for(i=0;i<9;i++)