Category : Printer + Display Graphics
Archive   : SIERPINS.ZIP
Filename : SIERPINS.C
Output of file : SIERPINS.C contained in archive : SIERPINS.ZIP
"rules," but which was really fun to write. It has the interesting
distinction of being the first program I have written from a description
of a program. John S.
*/
#include
#include
#include
time_t ltime;
main()
{
int a,b,c,v,w,x,y,z;
a=b=1;
c=rand()/v;
v=10923;
w=479;
x=0;
y=639;
z=320;
time(<ime);
srand(ltime);
_setvideomode(_VRES16COLOR);
while(!kbhit())
{
c=rand()/v;
if(c==0)
{
_setpixel((x+a)/2,(x+b)/2);
a=((x+a)/2);
b=((x+b)/2);
}
if(c==1)
{
_setpixel((y+a)/2,(x+b)/2);
a=(y+a)/2;
b=(x+b)/2;
}
if(c==2)
{
_setpixel((z+a)/2,(w+b)/2);
a=(z+a)/2;
b=(w+b)/2;
}
}
_setvideomode(_DEFAULTMODE);
exit(0);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/