蒟蒻全红求助!!!

P5705 【深基2.例7】数字反转

LinGxIao_0230 @ 2020-03-28 13:40:27

#include<iostream>
#include<fstream>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
string a;
int main()
{
    getline(cin,a);
    for(int i=a.size()-1;i>=0;i--) cout<<a[i];
    return 0;
}

by HearTheWindSing @ 2020-03-28 13:41:05

@蒟蒻_is_me cin难道不好吗


by Eon_Sky @ 2020-03-28 13:41:05

你到底看没看题


by LinGxIao_0230 @ 2020-03-28 13:41:22

各位大老我这个蒟蒻不知道怎么的全WA了


by LinGxIao_0230 @ 2020-03-28 13:42:15

cin就行了谢谢


by SIXIANG32 @ 2020-03-28 13:44:40

@蒟蒻_is_me 你还要判断这前面带不带0,是不是负数,这道题没必要用字符串啊。


by liqingyang @ 2020-03-28 13:52:40

@蒟蒻_is_me 您真的是太像 @虚空者 了


by 做梦想Peach @ 2020-03-28 13:59:04

@虚空者


by Petarl @ 2020-03-28 14:02:48

@蒟蒻_is_me 改名了?


by Petarl @ 2020-03-28 14:03:22

哦……看错了


by LinGxIao_0230 @ 2020-03-28 14:54:46

@星纯 我没改名改了头像


| 下一页