头文件#include <algorithm>
取反string
string = s; cin >> s;
reverse(s.begin(), s.end());
cout << s;
取反字符数组
char l[int] = "..."
reverse(l, l+strlen(l));
cout << l;
[参考]https://blog.csdn.net/qq_39093164/article/details/90107832
头文件#include <algorithm>
取反string
string = s; cin >> s;
reverse(s.begin(), s.end());
cout << s;
取反字符数组
char l[int] = "..."
reverse(l, l+strlen(l));
cout << l;
[参考]https://blog.csdn.net/qq_39093164/article/details/90107832