liuzaiy 发表于 2014-6-17 20:43 
只能跳出IF条件语句,不能跳出WHILE循环语句,你要跳出WHILE语句就得有
while
{
谁说的?
continue,break是跳出最近的一层循环,跟if没有关系。不只是while,就是for也照常可以跳出。
看看下面的代码:
for(di = 0; di<source_channel_count; di++)
{
if(...==FALSE)
{
if(...)
{
...
continue;
}
for(dj = 2; dj<8; dj++)
{
...
if(...==True)
{
...
break;
}
}
}
}
|