📅  最后修改于: 2022-03-11 14:44:56.059000             🧑  作者: Mango
代码示例1
int main() {
string str = "foobarbaz";
reverse(str.begin(), str.end());
cout << str; // prints "zabraboof"
return 0;
}