cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/18:40:22

From: sproctor AT enter DOT net (Sean)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: something went wrong
Date: Mon, 16 Aug 1999 17:26:36 GMT
Message-ID: <37bc496a.17985860@news.enter.net>
References: <QBpt3.73$%J4 DOT 17627 AT harpo DOT ctel DOT net>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
NNTP-Posting-Host: 207.16.153.115
X-Original-NNTP-Posting-Host: 207.16.153.115
X-Trace: 16 Aug 1999 13:27:07 -0400, 207.16.153.115
Organization: Enter.Net
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 14 Aug 1999 22:39:06 -0400, "Chewbaklava" <kalit AT ctel DOT net>
wrote:


>for (a = 0; a < 10; a++)
>{
>for (i = 0; i < 256; i++)
>}
>putpixel(bmp, i, a, i);
>}
>}
You don't even need those {}'s

for(blah)
  for(blah)
    blah;

would work just as well and you wouldn't have had that error.  It's
clearer to me besides.

Sean

- Raw text -


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