我的代码中有这个:
for(each player)
{
for(each packet of this player)
{
switch(packet_id)
{
case PACKET_TYPE:
{
if(someething is wrong)
{
skip this player iteration and go on with next player
}
}break;
}
}
}
Run Code Online (Sandbox Code Playgroud)
有两个'FOR'和一个'SWITCH'
如何逃离当前的PLAYER迭代,从switch语句中跳转到另一个玩家?
| 归档时间: |
|
| 查看次数: |
164 次 |
| 最近记录: |