hallo all,
how could I break the while statement inside the switch statement as follows:
any suggestion please..
best regards..
how could I break the while statement inside the switch statement as follows:
Code:
enum st {s0, s1} state;
while(true)
{
switch (state)
case s0:
// do something
break;
case s1:
if(condition)
//do something
break; //=======> here the while statement should be broken
else
//do something
break; //========> here the break of the case s1
}
best regards..
Comment