#include graphics.h
#include stdio.h
#include math.h
#include time.h
#define PI 3.14159
#define maxx 640
#define maxy 480main()
{int i;
char c;
init();
draw();
c=getch();
}
init()
/*初始化图形系统函数*/
{int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"c:cgi"); /*注重此处的路径*/
setbkcolor(1);
sky();
return;
}sky()
{int x,y,i;
for(i=1;i=500;i++)
{x=rand()%640;y=rand()%300;
putpixel(x,y,15);
putpixel(x+1,y,15);
...[ 查看全文 ]