为了什么这样个程序会进入死循环,求助
#include<stdio.h>int main(void)
{
int i;
bool b=true;
while(b)
{ int c;
c=scanf("%d",&i);
printf("%d\n",c);
if(c==1)
b=false;
else
printf("your input wrong,you can input only a charactr,try again\n");
}
printf("the num is:%d",i);
return 0;
}