c++——string实战??

1、使用reverse函数

#include <algorithm>   //添加头文件
reverse(s.begin(), s.end());   //具体用法  (s是一个string)

猜你喜欢

转载自www.cnblogs.com/bailuoxi/p/12638195.html
今日推荐