http://mr-aleph.livejournal.com/ ([identity profile] mr-aleph.livejournal.com) wrote in [personal profile] juan_gandhi 2010-05-08 02:26 pm (UTC)

while/break

switch(x) { 
case A: 
  // do A and fallthrough to B
case B:
  // do B
  break;
case C:
  // do C
  break;
default:
  // do default
}


while (x == A) { /* do A; */ break; }
while (x == B || x == B) { /* do B */ break; }
while (x == C) { /* do C */ break; }
while (x != A && x != B && x != C) { /* do default */ break; }


деньги предлагаю 50/50 =)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting