delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/20:42:13

From: "Johan Venter" <jventer AT writeme DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <QBpt3.73$%J4 DOT 17627 AT harpo DOT ctel DOT net> <37b66934 DOT 8789241 AT newsserver DOT cc DOT monash DOT edu DOT au> <oOzt3.107$%J4 DOT 19431 AT harpo DOT ctel DOT net>
Subject: Re: something went wrong
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <O2St3.132$ei1.493@newsfeeds.bigpond.com>
Date: Mon, 16 Aug 1999 11:14:04 +1000
NNTP-Posting-Host: 203.40.83.183
X-Trace: newsfeeds.bigpond.com 934800686 203.40.83.183 (Mon, 16 Aug 1999 20:51:26 EST)
NNTP-Posting-Date: Mon, 16 Aug 1999 20:51:26 EST
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Chewbaklava <kalit AT ctel DOT net> wrote in message
news:oOzt3.107$%J4 DOT 19431 AT harpo DOT ctel DOT net...
> thanks, that probably it.  i'm really an idiot when it come to looking for
> little mistakes like that.  god, one little typo and you're all screwed up
> and can't do ANYTHING.

Why don't you indent your code? That way you can see where the logic flow is
and easily find your errors.

For example:

int main(void)
{
    int x, y;

    for (x = 0; x < 10; x++) {
        /*do stuff*/
        for (y = 0; y < 10; y++) {
            /*do stuff*/
        }
    }

    return 0;
}

--
Johan Venter
ICQ 3643877
surf.to/djgppig



- Raw text -


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