#include<stdio.h>
#include<string.h>
int fun(char a[],int l);
int main()
{int l;
char a[1000];
gets(a);l=strlen(a);
fun(a,l);
return 0;
}
int fun(char a[],int l)
{int i,j,k;
char b[100];
for(i=1,j=0;i<l;j++,i+=2)
{b[j]=a[i];
}
a[1]=b[j-1];
for(i=3,k=0;i<l;k++,i+=2)
{a[i]=b[k];
}
puts(a);
return 0;
}
标签:ch9.14,return,int,char,fun,include From: https://blog.51cto.com/u_15758636/5908538