woaibianchenglwq @ 2024-11-27 17:48:27
#include<iostream>
#include<string>
using namespace std;
main()
{
string s;
getline(cin,s);
string str(s.rbegin(),s.rend());
cout<<str<<endl;
}
by sea_of_answers @ 2024-11-27 17:54:54
getline
会读一个换行符(\r
)。
求关注qwq