setcolor(2); line(x0,y0,x,y);}

a=(2*PAI/16)*i;
  x=ceil(x0+48*cos(a));
  y=ceil(y0+48*sin(a)*B);
  setcolor(2); line(x0,y0,x,y);}
setcolor(3);circle(x0,y0,60);
/* Make 0 time normal size letters */
settextstyle(DEFAULT_FONT,HORIZ_DIR,0);
outtextxy(10,170,"press a key");
getch();
setfillstyle(HATCH_FILL,YELLOW);
floodfill(202,100,WHITE);
getch();
for(k=0;k<=500;k++)
{
  setcolor(3);
  for(i=0;i<=16;i++)
  {
   a=(2*PAI/16)*i+(2*PAI/180)*k;
   x=ceil(x0+48*cos(a));
   y=ceil(y0+48+sin(a)*B);
   setcolor(2); line(x0,y0,x,y);
  }
  for(j=1;j<=50;j++)
  {
   a=(2*PAI/16)*i+(2*PAI/180)*k-1;
   x=ceil(x0+48*cos(a));
   y=ceil(y0+48*sin(a)*B);
   line(x0,y0,x,y);
  }
}
restorecrtmode();

}

----------------------------------------------------------------------------------------------

http://www.rznews.cn/yszx/stbk/5443972332.html
http://zx.zynews.com/hyzx/yskt/5434781857.html
http://zx.zynews.com/hyzx/yskt/5434776758.html
http://zx.zynews.com/hyzx/yskt/5434774541.html
http://www.zhiyin.cn/ylzx/gzpx/5434897750.html
http://zx.zynews.com/hyzx/yskt/5433495042.html
http://www.zznews.cn/hyzx/jkxx/5449464160.html
http://zx.zynews.com/hyzx/yskt/5433285704.html
http://www.zznews.cn/hyzx/jkxx/5443068727.html
http://www.zznews.cn/hyzx/jkxx/5445271231.html
http://zx.zynews.com/hyzx/yskt/5431868783.html
http://zx.zynews.com/hyzx/yskt/5433285839.html
http://www.zznews.cn/hyzx/jkxx/5443078089.html
http://zx.zynews.com/hyzx/yskt/5433286178.html
http://www.zznews.cn/hyzx/jkxx/5445306853.html
http://zx.zynews.com/hyzx/yskt/5433286370.html
http://www.zznews.cn/hyzx/jkxx/5445054275.html
http://www.lfxww.com/2014/shichangshangxun/2014/0421/827920.html
http://www.zznews.cn/hyzx/jkxx/5445080916.html
http://www.lfxww.com/2014/shichangshangxun/2014/0421/828177.html
http://zx.zynews.com/hyzx/yskt/5433495042.html
http://www.zznews.cn/hyzx/jkxx/5445087457.html
http://zx.zynews.com/hyzx/yskt/5433498057.html
http://www.lfxww.com/2014/shichangshangxun/2014/0421/828186.html
http://www.zznews.cn/hyzx/jkxx/5445282274.html
http://www.zznews.cn/hyzx/jkxx/5445293800.html
http://www.zhiyin.cn/ylzx/gzpx/5434897750.html
http://zx.zynews.com/hyzx/yskt/5434774541.html
http://www.zznews.cn/hyzx/jkxx/5449449141.html
http://zx.zynews.com/hyzx/yskt/5434776758.html
http://www.zznews.cn/hyzx/jkxx/5449464160.html
http://zx.zynews.com/hyzx/yskt/5434779960.html
http://www.zznews.cn/hyzx/jkxx/5449497060.html
http://zx.zynews.com/hyzx/yskt/5434781857.html
http://www.zznews.cn/hyzx/jkxx/5449503798.html
http://www.rznews.cn/yszx/stbk/5443972332.html

-----------------------------------------------------------------------------
【程序60】
题目:画图,综合例子。   
1.程序分析:
2.程序源代码:
#include "graphics.h"
#define LEFT 0
#define TOP 0
#define RIGHT 639
#define BOTTOM 479
#define LINES 400
#define MAXCOLOR 15
main()
{
int driver,mode,error;
int x1,y1;
int x2,y2;
int dx1,dy1,dx2,dy2,i=1;
int count=0;
int color=0;
driver=VGA;
mode=VGAHI;
initgraph(&driver,&mode,"");
x1=x2=y1=y2=10;
dx1=dy1=2;
dx2=dy2=3;
while(!kbhit())
{
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值