www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/17/17:54:51

From: frenchc AT cadvision DOT com (Calvin French)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [ALLEGRO] modex & test.exe bug ???
Date: Mon, 17 Feb 1997 07:47:33 GMT
Organization: CADVision Development Corp.
Lines: 19
Message-ID: <5eaa61$n22@elmo.cadvision.com>
References: <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro> <lwPKbAAM5uBzEw7A AT talula DOT demon DOT co DOT uk>
NNTP-Posting-Host: ts16ip70.cadvision.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk> wrote:

>>for(x=0;x<SCREEN_W,x++)
>> for(y=0;y<SCREEN_H,y++)
>>   putpixel(x,y,(random() & 16));

>Don't you mean putpixel(screen, x, y, (random() & 16))? If you really
>left out the screen pointer, I don't see how it would even compile. If
>that's just a typo, it looks correct to me: in what way is the nonsense
>you get different to what you expected? (random pixels do tend to look
>like nonsense :-)

And besides, the syntax is for(;;) not for(;,)

hehehehe....

- Calvin -
www.cadvision.com/frenchc

- Raw text -


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