jlr999999 @ 2023-03-04 11:47:07
求助,求助。
by InversionShadow @ 2023-03-04 11:48:44
代码?
by iterator_traits @ 2023-03-04 11:49:47
@jlr999999 您的输入呢?
by iterator_traits @ 2023-03-04 11:50:09
帮楼主贴一下代码
#include <iostream>
using namespace std;
int main(){
int a,a1,a2,a3;
cout<<a3<<a2<<a1<<a;
return 0;
}
by WA_sir @ 2023-03-04 11:51:55
6
by WA_sir @ 2023-03-04 11:52:42
@jlr999999 你没有输入
by WA_sir @ 2023-03-04 11:53:52
@jlr999999 处理也有问题
by codejiahui @ 2023-03-04 12:13:29
@jlr999999
#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main()
{
string s;
cin >> s;
for(int i = s.length() - 1;i >= 0;i--)
cout << s[i];
return 0;
}
by __Tonycyt__ @ 2023-03-04 12:19:08
是s.size()
吧@codejiahui
by iterator_traits @ 2023-03-04 12:24:33
@Tonycyt 这两个貌似都有,而且作用一样
by __Tonycyt__ @ 2023-03-04 12:25:08
emmm^……