#include <stdio.h>
#include <string.h>
int main(){
void reverse_order(char str[]);
char str[100];
printf("Please input the string, we will inverting it.\n");
scanf("%s",str);
reverse_order(str);
printf("After inverting, the string is %s\n",str);
}
//Inverting string (将字符串进行逆置)
void reverse_order(char str[]){
char temp;
int i,j;
for(i=0,j=strlen(str);i<(strlen(str)/2);i++,j--){
temp=str[i];
str[i]=str[j-1];
str[j-1]=temp;
}
}