/* 人数 */
#define N 4
/* 姓名长度 */
#define M 50
#include
#include
void jiaohuan(char *x, char *y)
{
int L,i;
char c;
L = strlen(x);
if (strlen(y) > L) L = strlen(y); /* 按长度交换 */
for (i=0;i
main()
{
char str[N][M] ;
int i,j,a,s[N];
for(i=0;i
scanf("%s",str[i]);
printf("source :");
scanf(" %d",&s[i]);
printf("\n");
}
for(i=0;i
for(i=0;i
a=s[i];
s[i]=s[j];
s[j]=a;
jiaohuan(str[i],str[j]);
}
printf("\n");
for(i=0;i
getch();
}