| delorie.com/archives/browse.cgi | search |
| From: | "b279" <b279 AT inetone DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: while loops and for loops |
| Date: | Mon, 1 Oct 2001 21:32:41 -0400 |
| Organization: | Posted via Supernews, http://www.supernews.com |
| Message-ID: | <tri68sdteebs92@corp.supernews.com> |
| References: | <trhd37bspfqaac AT corp DOT supernews DOT com> <3BB8D340 DOT 8626FF2F AT earthlink DOT net> |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| X-Complaints-To: | newsabuse AT supernews DOT com |
| Lines: | 45 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <allegro.h>
void startup(void);
main()
{
startup();
srand(time(0));
while (!kbhit())
putpixel(screen, rand()%SCREEN_W, rand()%SCREEN_H, rand()%255);
return 0;
}
void startup(void)
{
allegro_init();
install_keyboard();
set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
set_pallete(desktop_pallete);
}
is it because of the install_keyboard() function?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |