???RE???

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

hanshuzhili @ 2024-07-27 08:02:11

敢问dalao是怎么一回事

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    for(int i=4;i>=0;i++)
    {
        cout<<s[i];
    }
    return 0;
}

by Chlero @ 2024-07-27 08:10:56

i++应改成i--


by Chlero @ 2024-07-27 08:11:16

@hanshuzhili


by hanshuzhili @ 2024-07-27 09:12:15

蟹蟹dalao 立马关注!


|