1   1  /  1  页   跳转

continue怎么用?

continue怎么用?

continue怎么用?
最后编辑2005-07-26 15:57:40
分享到:
gototop
 

就是跳过本次循环继续下个循环
gototop
 

公机器人找对象的判断程序的片断

for each robot in crowd {
  if(robot.getGender()!=CONSTANT.SEX.FEMALE) continue;
  Woman aWoman = (Woman)person;
  if(aWoman.age() > 30 || aWoman.age() < 18) continue;
  ...
}
gototop
 
1   1  /  1  页   跳转
页面顶部
Powered by Discuz!NT