c++ string c++ string类型; 1 在末尾添加一个字符,可用str.push_back(); 2 在末尾删除一个字符,可用str.pop_back(); vector: 添加元素也可用v.push_back();