delorie.com/archives/browse.cgi | search |
From: | dontmailme AT iname DOT com (Steamer) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: BREAKing out of a nested loop |
Date: | Thu, 03 Aug 2000 20:15:51 GMT |
Organization: | always disorganized |
Lines: | 29 |
Message-ID: | <3989d2dc.20390040@news.freeserve.net> |
References: | <3988bc46_2 AT spamkiller DOT newsfeeds DOT com> <3988e66b DOT 4161646 AT news DOT vallnet DOT com> <39898b96_1 AT spamkiller DOT newsfeeds DOT com> <3989928d DOT 3922946 AT news DOT freeserve DOT net> <3989c690_3 AT spamkiller DOT newsfeeds DOT com> |
NNTP-Posting-Host: | modem-166.maine.dialup.pol.co.uk |
X-Trace: | news8.svr.pol.co.uk 965333752 18669 62.137.70.166 (3 Aug 2000 20:15:52 GMT) |
NNTP-Posting-Date: | 3 Aug 2000 20:15:52 GMT |
X-Complaints-To: | abuse AT theplanet DOT net |
X-Newsreader: | Forte Free Agent 1.11/32.235 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
23yrold3yrold wrote: > Does the label have to be declared beforehand? No, you can't do that. > I tried using it and got > > Error: label must be followed by a statement Looks like you put it in the wrong place. Here's what you should have: for(int a = 1; a <= pptest_w; a++){ for(int b = 1; b <= pptest_h; b++){ pixelcheck = getpixel(pptest_1a, a, b); if(pixelcheck <= 0){ }else if(pixelcheck != 0){ pixelcheck = getpixel(pptest_2a, a, b); if(pixelcheck <= 0){ }else if(pixelcheck != 0){ collide = 1; goto mylabel; /* goto */ } } } } mylabel: /* label */ FUNKtion();
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |