Zsquirrel @ 2020-03-08 11:02:42
#include<stdio.h>
#include<string.h>
int main()
{
char a[5],b[5];
scanf("%s",a);
int i;
for(i=0;i<strlen(a);i++){
b[i]=a[strlen(a)-i-1];
}
printf("%s",b);
return 0;
}
by _Herobrine_ @ 2020-03-08 11:14:50
STLstring的reverse不香吗
by HyyypRtf06 @ 2020-03-08 11:19:19
@Zsquirrel 爆数组了
by easonlee @ 2020-03-21 21:20:33
还有,你可以用string
by gaozitao1 @ 2020-07-26 10:05:42
@Zsquirrel 数组开小了,开成10就AC了