一个简单的问题想请教~
请看这一段代码,我想问是不是这个while循环是不是每到要判断循环条件时就要执行一次getchar函数,如果是的话就没必要蓝色这一段,如果不是的话,那第一次循环式是怎样获取一个ch值.while(ch=getchar()!='n')
{
for(i=0;i<CSIZE;i++)
{
printf("please enter the frist name and last name:");
scanf("%s%s",msg[i].std_name.first,msg[i].std_name.last);
printf("now please enter third dian of text:");
scanf("%lf%lf%lf",&msg[i].dian[0],&msg[i].dian[1],&msg[i].dian[2]);
}
chuli(msg);
printf("do you want to start\n");
ch=getchar();