回复 3 楼 五当家
五当家你好,我市一个大一新生,我也在接触C语言。能不能请您详细解释一下这道题中各个代码的含义呢?
#include <stdio.h>
int num = 0;
void palin(void);
main()
{
printf("please in put num\n");
palin();
printf("\n");
}
void palin(void)
{
char next;
next=getchar();
if(next == '\n')
{
printf("\nnum = %d\n",num);
}
else
{
num++;
palin();
putchar(next);
}
}