解题思路:
1、将字符串转置
2、对转置后的字符串中单词转置
1 #include<stdio.h>
2 #include<string.h>
3 #include<stdlib.h>
4 #include<stdbool.h>
5 //字符串转置
6 void tranStr(const char *p,char *s)
7 {
8 int len = strlen(p);
9 int i,j;
10 for(i=len,j=0; i>=0,j<len; i--,j++)
11 {
12 *(s+j) = *(p+i-1);
13 }
14 *(s+j) = '