Re: How to "continue" in nested do-while-loop?
- From: "Barry" <barryg@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 17 Dec 2006 05:48:10 -0600
"Richard Heathfield" <rjh@xxxxxxxxxxxxxxx> wrote in message
news:f72dnYWgg9JSdR_YRVnyiQA@xxxxxxxxx
Jan Schmidt said:
Hi,
in a nested do-while-loop structure I would like to "continue" the outer
loop. With goto this should be no problem in while-loops. However, for
do-while I cannot get it to work
do
{
foo();
bar = 0;
while(!bar && baz)
{
quux();
/* At this point, either you want to carry on
processing this loop, or you don't. Set bar accordingly. */
if(!bar)
{
quuy();
}
}
if(!bar)
{
quuz();
}
} while(ribbit);
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Amazing that on clc it took this long for someone to post
the effective answer - Why not write the code correctly
instead of hack it to work?
.
- Follow-Ups:
- Re: How to "continue" in nested do-while-loop?
- From: Richard Bos
- Re: How to "continue" in nested do-while-loop?
- From: vid512@xxxxxxxxx
- Re: How to "continue" in nested do-while-loop?
- From: vid512@xxxxxxxxx
- Re: How to "continue" in nested do-while-loop?
- From: Richard Heathfield
- Re: How to "continue" in nested do-while-loop?
- References:
- How to "continue" in nested do-while-loop?
- From: Jan Schmidt
- Re: How to "continue" in nested do-while-loop?
- From: Richard Heathfield
- How to "continue" in nested do-while-loop?
- Prev by Date: Re: Dynamic C to C Data Transfer
- Next by Date: Re: Dynamic C to C Data Transfer
- Previous by thread: Re: How to "continue" in nested do-while-loop?
- Next by thread: Re: How to "continue" in nested do-while-loop?
- Index(es):
Relevant Pages
|
|