Mail Archives: djgpp/1997/02/17/17:54:51
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 -