为什么会不运行第二个scanf
#include <stdio.h>#include <stdlib.h>
int main ()
{long int a=250621,s;
char d;
do
{
scanf ("%d",&s);
if (s==a)
printf("成功进入");
else
printf("错误\n");
scanf ("%c",&d);//这句一直不运行
}
while (d=='y'||d=='Y');
system ("pause");
}
2013-07-10 10:18
2013-07-10 11:13
2013-07-10 12:02

2013-07-10 23:45
2013-07-11 00:49

2013-07-12 19:03