请问下面这个程序中,输入3进行响应,会导致什么不希望的动作?

下面是《C Primer Plus》第8章最后面菜单浏览一节的内容,其中说到,如果输入3进行响应,则scanf()将读取3并留下一个换行符,并把它作为队列中的下一个字符。对get——choice()的下一次调用会导致_get_first()返回换行符,从而导致不希望的动作。
可是我测试了一下,并没有什么问题啊?
这个不希望的动作指的是什么?
求大神指教一下!
#include
char get_choice(void);
void count(void);
char get_first(void);
int main(void)
{
int choice;

while((choice=get_choice())!='q')
{
    switch(choice)
    {
        case 'a':printf("Buy low, sell high.\n");
                break;
        case 'b':putchar('\a');
            break;
        case 'c':count();
            break;
        default:printf("Program error!\n");
            break;
    }
}
return 0;

}

char get_choice(void)
{
int ch;
printf("Enter the letter of your choice:\n");
printf("a. advice\n");
printf("b.bell\n");
printf("c.count\n");
printf("q.quit\n");
//ch=getchar();
ch=get_first();
while((ch<'a'||ch>'c')&&ch!='q')
{
printf("Please reponse with a,b,c,q.\n");
//ch=getchar();
ch=get_first();
}
return ch;
}

char get_first(void)
{
int ch;
ch=getchar();
while(getchar()!='\n')
continue;
return ch;
}

void count(void)
{
int n,i;

printf("count how far? Enter an integer:\n");
scanf("%d",&n);
for(i=1;i<=n;i++)
    printf("%d\n",i);

}

图片说明

get_first第二次调用这个函数返回的是你希望要的值吗

目前动作正常是因为换行符被中的第一个给吸收了。如果把中的while给注释掉效果就能看出来了。

目前动作正常是因为换行符被getfirst中的第一个getchar给吸收了。如果把getfirst中的while给注释掉效果就能看出来了。