题解 | #截取字符串#
字符串反转
http://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
#include <bits/stdc++.h>
using namespace std;
int main ()
{
string str;
cin >> str;
reverse ( str.begin(), str.end() );
cout << str;
return 0;
}