nested loop break c++的相關文章
nested loop break c++的相關公司資訊
nested loop break c++的相關商品

c++ - How to break out of a loop from inside a switch? - Stack Overflow
瀏覽:865
日期:2025-04-26
I'm writing some code that looks like this: while(true) { switch(msg->state) { case MSGTYPE: // ... break; // ... more stuff ... case DONE: break; // **HERE, I want to break out of the loop itself** } } Is there any direct way to do that?...看更多