home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
WGT_TC21.ZIP
/
WGT03.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-17
|
393b
|
20 lines
#include <conio.h>
#include "c:\tc\wgt\wgt.h"
/* WORDUP Graphics Toolkit Version 2.1
Demonstration program 3
Clears the screen with random colours until you hit a key.
*/
int x,y,col;
void main(void)
{
vga256(); // initializes system
do {
wcls(rand() % 255);
} while (kbhit()==0);
getch(); // get the key
textmode(C80); // used to return to text mode
}