回复 9楼 纳兰伽香
我是说这种方法可行。好不好就看程序要求了我只是提供思路。
[ 本帖最后由 code力力 于 2015-4-10 13:26 编辑 ]

你醒了?快起来敲代码!!
#include <stdio.h> #include <string.h> void Reverse(char *,int ); void main() { char str[1028]; gets(str); Reverse(str,strlen(str)); } void Reverse(char *a,int n) { for(;n>=0;n--) printf("%c",a[n]); printf("\n"); }