fzlzjerry @ 2024-04-04 17:23:18
#include <iostream>
#include <string>
using namespace std;
string a;
int main(){
getline(cin, a);
for (int i = a.length() - 1; i >= 0; i--) {
cout << a[i];
}
return 0;
}
by _8008008 @ 2024-04-04 17:42:11
getline(cin,a)
会读入 '\n'
by Hi_Marcus @ 2024-04-07 22:37:56
@Morax2008 不嫩这么做,答案是4个整数,编译器希望你输出1个浮点数