荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: playboy (为了钱,努力!), 信区: Program
标  题: 水波
发信站: BBS 荔园晨风站 (Wed Jan 12 08:52:38 2000), 转信

#include <graphics.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include <stdlib.h>
int GRAPHDRIVER;
int graphmode;
int step,r1,r2,r3,r4,r5;
void main()
{
GRAPHDRIVER=DETECT;
initgraph(&GRAPHDRIVER,&graphmode,"f:\\turboc3");
step=1;
r1=0;r2=10;r3=20;r4=30;r5=40;
while (!kbhit())
{
r1=r1%60;
r2=r2%60;
r3=r3%60;
r4=r4%60;
r5=r5%60;
setcolor(3);
circle(300,200,0);
circle(300,200,r1);
circle(300,200,r2);
circle(300,200,r3);
circle(300,200,r4);
circle(300,200,r5);
delay(50);
setcolor(0);
circle(300,200,0);
circle(300,200,r1);
circle(300,200,r2);
circle(300,200,r3);
circle(300,200,r4);
circle(300,200,r5);
clearviewport();
r1=r1+step;
r2=r2+step;
r3=r3+step;
r4=r4+step;
r5=r5+step;
}
closegraph();
}

--
※ 来源:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: 192.168.1.90]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店