跳出三层循环
bool variable = false;
for(whatever){
for(whatever){
for(whatever){
//碰到你要跳出的条件了
variable = true;
break;
}
if(variable)
break;
}
if(variable)
break;
}
跳出三层循环
bool variable = false;
for(whatever){
for(whatever){
for(whatever){
//碰到你要跳出的条件了
variable = true;
break;
}
if(variable)
break;
}
if(variable)
break;
}