假设你要在s的第p个字符后插入,那么 string s,s1,s2; p; s1=strcpy(s,s[p]); s2=strcpy(s[p+1],s[s.length()-1]); s=s1+' '+s2;