#2
renkejun19422017-05-24 12:03
|
程序代码:
while(count < MAXBKS && gets(library[count].title) != NULL && library[count].title[0] != '\n')
{
printf("Now enter the author.\n");
gets(library[count].author);
printf("Now enter the value.\n");
scanf("%f",&library[count++].value);
while(getchar() != '\n')
continue; //清空输入行
if(count < MAXBKS)
printf("Enter the next title.\n");
}
{
printf("Now enter the author.\n");
gets(library[count].author);
printf("Now enter the value.\n");
scanf("%f",&library[count++].value);
while(getchar() != '\n')
continue; //清空输入行
if(count < MAXBKS)
printf("Enter the next title.\n");
}
这个continue;在这的作用是什么