#include \"stdio.h\" #include \"conio.h\" #include void my_delay(int clicks) { unsigned int far *clock=(unsigned int far *)0x0000046CL; unsigned int now; now=*clock; while(abs(*clock-now) int gd=DETECT,gm; int flag,i,j,k,l,x,y,maxx,maxy,key; registerbgidriver(EGAVGA_driver); initgraph(&gd,&gm,\"\"); maxx=getmaxx()+1; maxy=getmaxy()+1; x=maxx/16; setfillstyle(1,2); bar(x,5,maxx-x,19); x=maxx/8; setfillstyle(1,15); bar(x,4,maxx-x,19); x=maxx/16+10; for(i=20;i<=maxy-60;i+=15){ setfillstyle(1,15); bar(x,i,x+10,i+10); } setcolor(14); line(x+5,20,x+5,maxy-58); k=5; l=1; outtextxy(maxx/16,maxy-20,\"Programming by Ryw12403\"); x=maxx/8; line(x-1,maxy-60,x-1,19); line(x-1,maxy-60,maxx-x+1,maxy-60); line(maxx-x+1,maxy-60,maxx-x+1,19); setcolor(15); for(i=20;i line(x,i+j,maxx-x,i+j); l++; setfillstyle(1,1); bar(50,k,60,k+10); if(j%2==0) my_delay(1); if(l>=14){ setfillstyle(1,15); bar(50,k,60,k+10); l=1; k+=15; if(k>maxy-60) k=5; } } } outtextxy(maxx/16+100,maxy-50,\"Press any key to open.\"); setfillstyle(1,1); bar(50,k,60,k+10); getch(); key=k; setcolor(0); l=1; for(i=maxy-60;i>=20;i-=20){ for(j=18;j>=1;j--){ line(x,i+j,maxx-x,i+j); l++; if(j%2==0) my_delay(1); if(l>=15){ setfillstyle(1,15); bar(50,k,60,k+10); l=1; k-=15; if(k<5) k=key; setfillstyle(1,1); bar(50,k,60,k+10); } } } getch(); closegraph(); } 因篇幅问题不能全部显示,请点此查看更多更全内容