逆序
#include<stdio.h>
void f(char *p){
int i=0;
while(*(p+i)!='\0'){
i++;
}
int a=0;
int x=i-1;
char t;
while(x>i/2){
t=*(p+a);
*(p+a)=*(p+i-a);
*(p+i-a)=t;
a++;
x--;
}
}
int main(){
char st[20];
scanf("%s",st);
f(st);
printf("%s",st);
}
vbkkhcdsrghknbcxseyjkbhfesxhmkkhhvccseesvbjooknbxddguu