1. 反转字符串
char* strrev1(const char* str) { int len = strlen(str); char *temp = new char[len + 1]; char *p = temp + len; *p = '