我的代码中有这个:
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;
}
}
}
有两个“FOR”和一个“SWITCH”
我如何从 switch 语句中退出当前的 PLAYER 迭代,跳转到另一个玩家?
- 休息会导致“案例”破裂;
- 一个继续;将导致下一个数据包被迭代
- .. ?