#include//字符串的反转using namespace std;void swap( char &cpara1, char &cpara2){ char temp; temp = cpara1; cpara1 = cpara2; cpara2 = temp;}void RevStr( char *src){ char *start=src,*end=src,*ptr=src; while(*ptr++!='\0') { if(*ptr==' '||*ptr=='\0') { end=ptr-1; while(start