例如:输入原字符串“abcdefgh”,和要替换的字符串“xyz”,以及要替换的位置3,输出字符串“abxyzfgh”
void replace(char *s, char *d, int i) { while(*d != '\0') s[i++ - 1] = *d++; }