home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
messroms.de
/
2007-01-13_www.messroms.de.zip
/
VZ200
/
TOOLS
/
ZCCSRC.ZIP
/
demo.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-03-08
|
688b
|
41 lines
main(argc, argv)
int argc;
int *argv;
{
int i, j;
setbase(0x7000);
mode(0);
printf("ARGC : %u\n",argc);
printf("ARGV[0]: %s\n",argv[0]);
printf("- PRESS ANY KEY TO CONTINUE -\n");
getch();
while(inch())
;
rand(0);
for (i = 1; i < 50; i++ )
{
j = rand(10000);
printf("SQRT(%d) = %d\n",j,sqrt(j));
}
printf("- PRESS ANY KEY TO CONTINUE -\n");
getch();
while(inch())
;
mode(1);
for (i = 0; i < 128; i++)
{
line(i, 0, 127-i, 63, i & 3);
sound(i+1,8);
}
bgrd(1);
for (i = 0; i < 64; i++)
{
line(0, i, 127, 63-i, i & 3);
sound(i+1,6);
}
getch();
mode(0);
bgrd(0);
return 0;
}