作者在 2011-05-13 12:50:46 发布以下内容
#include <stdio.h>
void fac(char ch=getchar())
{
if(ch!='\n'){
fac(ch=getchar());
printf("%c",ch);
}
}
void main()
{
char ch;
printf("输入一行字符串\n");
fac(ch=getchar());
printf("%c\n",ch);
}
void fac(char ch=getchar())
{
if(ch!='\n'){
fac(ch=getchar());
printf("%c",ch);
}
}
void main()
{
char ch;
printf("输入一行字符串\n");
fac(ch=getchar());
printf("%c\n",ch);
}