nested loop break c++的相關公司資訊
c++ - How to break out of a loop from inside a switch? - Stack Overflow

c++ - How to break out of a loop from inside a switch? - Stack Overflow

瀏覽:1134
日期:2024-06-07
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?...看更多