#include <iostream> #include <string.h> using namespace std; // rever letters of a string char * strRevert1 (char * src) { if (src == NULL) return NULL; int len = strlen(src); for (int i=0; i<len/2; i++) { src[i] = src[i] ^ src[len-1-i]; src[len-1-i] = src[i] ^ src[len-1-i]; src[i] = src[i] ^ src[len-1-i]; } return src; } // revert words of a string - this solution is not good char * strRevert2 (char * src) { if (src == NULL) return NULL; int len = strlen(src); char * orgSrc = src; char des[len+1]; des[len] = '