delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/03/11:15:21

From: "23yrold3yrold" <cbarry AT pangea DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <3988bc46_2 AT spamkiller DOT newsfeeds DOT com> <3988e66b DOT 4161646 AT news DOT vallnet DOT com>
Subject: Re: BREAKing out of a nested loop
Date: Thu, 3 Aug 2000 10:10:11 -0500
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 64.4.89.70
Message-ID: <39898b96_1@spamkiller.newsfeeds.com>
X-Trace: 3 Aug 2000 10:11:18 -0500, 64.4.89.70
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse AT newsfeeds DOT com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED Newsgroups.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Joe User" <bergeron AT vallnet DOT com> wrote in message
news:3988e66b DOT 4161646 AT news DOT vallnet DOT com...
>
> Try 'goto'.  You'll love it.  They never taught you about it in
> school.
>
> >Hullo. I would like a little help with something. I've written a simple
> >collision-detection program, but I need a little clarification with
> >something:
> >
> >
> >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;
> >            break;
> >         }
> >      }
> >   }
> >}
> >
> >FUNKtion();
> >

Now I know how to use goto in BASIC, but how here? Should I put

goto 747

and then put

747;

before FUNKtion()? I'm assuming I'm limited to numbers, not words, when
using goto.


Chris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019