请编程序
追答调试出来了你看看
#include
#include
#include
void show(char* a[],int size)
{ printf("show the string \n");
int i;
for(i=0;i0)
{
temp=b[i];
b[i]=b[j];
b[j]=temp;
}
}
}
}
int main()
{
const int size=5;
char* a[size];
int i;
for(i=0;i<size;i++)
{ char *p=(char *)malloc(sizeof(int)*100);
printf("please input the %d string:",i+1);
scanf("%s",p);
a[i]=p;
}
show(a,size);
paixu(a,size);
show(a,size);
return 0;
}