跳出循环操作

1、跳出整个循环操作
for(int i=0;i<count;i++)
{
if(tt[count]==null || tt[count]=="")
 break;   //跳出整个循环
...  //执行其余操作
}

2、跳出某一次循环的操作
for(int i=0;i<count;i++)
{
if (tt[count]==null || tt[count] =="")
 continue;  //跳出本次循环
...    //执行以后的操作
}
posted @ 2006-08-18 13:14  MSDI  阅读(951)  评论(0编辑  收藏  举报