string的反转

来源:互联网 发布:上海优化 编辑:程序博客网 时间:2024/06/05 14:57

string a = "123";

reverse(a.begin(), a.end());

然后a就变成"321"了

0 0