C++substr方法返回的是新字符串
Returns a newly constructed string object with its value initialized to a copy of a substring of this object.
The substring is the portion of the object that starts at character position pos and spans len characters (or until the end of the string, whichever comes first).
原先31行是按38行那么写的,s怎么都不变,substr函数返回的是新的字符串当然不会变啦。