s.erase(i,n); //将string数组由位标i→i+n清除。i+1 转载于:https://www.cnblogs.com/noip/archive/2012/07/09/2582060.html