解题思路:
注意事项:
C++是世界上最好的语言~~
参考代码:
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(int argc, char** argv)
{
string str,origStr;
cin >> str;
origStr = str;
reverse(str.begin(), str.end());
cout << origStr << str;
return 0;
}
0.0分
0 人评分