wangjinli @ 2020-03-25 10:26:41
#include<stdio.h>
#include<string.h>
int main()
{
char num[6];
gets(num);
int i;
for(i=strlen(num)-1;i>=0;i--)
printf("%c",num[i]);
printf("\n");
return 0;
}
by IntrepidStrayer @ 2020-03-25 10:27:38
玄学gets莫用
by IntrepidStrayer @ 2020-03-25 10:28:12
数组不够大
by Karrγ5307 @ 2020-03-25 10:28:35
用reverse不香?
by IntrepidStrayer @ 2020-03-25 10:28:48
@wangjinli
by Karrγ5307 @ 2020-03-25 10:29:10
STL大法好
by fzj2007 @ 2020-03-25 10:43:05
getline不好吗非要用gets。。容易出现玄学错误。。