当不用break语句时,谢谢指教!!
输入一个value值,value等于0就退出int value, finish = 0;
while (scanf("%d", &value) && !finish)
{
if (value == 0)
{
printf("Value not acceptable\n");
finish = 1;
} else {
/* remaining instructions in the loop */
}
}
这么写的目的是为了避免用break,但是我看不明白&& !finish啥意思...谢谢指教