#include <iostream>
#include <string>
using namespace std;
void reverse(string &src)
{
if (src == "") return;
int len = src.length();
int i = 0;
int j = len - 1;
char c;
while (i < j )
{
c = src[i];
src[i] = src[j];
src[j] = c;
i++;
j--;
}
}
int main() {
//string src = "hello world";
string line;
getline(cin, line);
reverse(line);
cout << line << endl;
system("pause");
return 0;
}
十道单选 十道多选 几道填空题,
问答题:IP建立连接
程序题: I am student 翻转