char* replaceSpace(char* s ) { int i = 0, j = 0; int cnt = 0, n = strlen(s); for (i = 0; i < n; i++) { if (s[i] == ' ') cnt++; //求空格个数 } char* ret = NULL; //新数组头指针 ret = (char*)malloc(sizeof(int) * ( n + cnt * 3 + 1)); //定义新数组大小 for (i = 0, j = 0;...