aksdshfb @ 2024-11-18 23:44:51
#include <bits/stdc++.h>
using namespace std;
int main()
{
string a;
string b;
getline(cin,a);
b.resize(a.length());
for (int i=0;i<a.length();i++)
b[i]=a[a.length()-1-i];
cout<<b;
return 0;
}
求助,devc++上都是对的,为什么全wa
by aksdshfb @ 2024-11-19 00:11:38
不能用getline吗
by kevin110609 @ 2024-11-19 08:14:50
不能用getline,换成cin就对了