#include "graphics.h"用法技术

#include "stdio.h"
#include "graphics.h"
main()
{
int i,j,driver=VGA,mode=VGAHI;
initgraph(&driver,&mode,"");
setbkcolor(YELLOW);
for(i=50;i<=230;i+=20)
  for(j=50;j<=230;j++)
  putpixel(i,j,1);
for(j=50;j<=230;j+=20)
  for(i=50;i<=230;i++)
  putpixel(i,j,1);

}

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

http://www.zznews.cn/hyzx/jkxx/5469347888.html
http://www.rznews.cn/yszx/stbk/5479584797.html
http://www.lfxww.com/jk/zxzx/5456187661.html
http://www.rznews.cn/yszx/stbk/5487032076.html
http://yiyuan.hangzhou.com.cn/hmfx/4485690.html
http://www.zznews.cn/hyzx/jkxx/5464185928.html
http://www.rznews.cn/yszx/stbk/5487556791.html
http://www.yltvb.com/xwbk/jkxx/5464296969.html
http://www.rznews.cn/yszx/stbk/5491478666.html

http://www.lfxww.com/jk/zxzx/5456190414.html
http://www.yltvb.com/xwbk/jkxx/5461338233.html
http://www.rznews.cn/yszx/stbk/5479584797.html
http://www.lfxww.com/jk/zxzx/5456188652.html
http://www.yltvb.com/xwbk/jkxx/5461343939.html
http://www.zznews.cn/hyzx/jkxx/5456688226.html
http://www.lfxww.com/jk/zxzx/5456187661.html
http://www.zznews.cn/hyzx/jkxx/5456694669.html
http://www.yltvb.com/xwbk/jkxx/5461376849.html
http://www.zznews.cn/hyzx/jkxx/5464170704.html
http://yiyuan.hangzhou.com.cn/hmfx/4485699.html
http://www.rznews.cn/yszx/stbk/5487032076.html
http://yiyuan.hangzhou.com.cn/hmfx/4485690.html
http://www.zznews.cn/hyzx/jkxx/5464185928.html
http://yiyuan.hangzhou.com.cn/hmfx/4485682.html
http://www.rznews.cn/yszx/stbk/5487556791.html
http://yiyuan.hangzhou.com.cn/hmfx/4485705.html
http://www.zznews.cn/hyzx/jkxx/5464191155.html
http://www.yltvb.com/xwbk/jkxx/5464296969.html
http://yiyuan.hangzhou.com.cn/hmfx/4485701.html
http://www.zznews.cn/hyzx/jkxx/5468442672.html
http://www.rznews.cn/yszx/stbk/5491478666.html
http://www.zznews.cn/hyzx/jkxx/5468519681.html
http://www.zznews.cn/hyzx/jkxx/5469347888.html
http://www.zznews.cn/hyzx/jkxx/5468554744.html


-----------------------------------------------------------------------------
【程序63】
题目:画椭圆ellipse   
1.程序分析:
2.程序源代码:
#include "stdio.h"
#include "graphics.h"
#include "conio.h"
main()
{
int x=360,y=160,driver=VGA,mode=VGAHI;
int num=20,i;
int top,bottom;
initgraph(&driver,&mode,"");
top=y-30;
bottom=y-30;
for(i=0;i
{
ellipse(250,250,0,360,top,bottom);
top-=5;
bottom+=5;
}
getch();
}

你可能感兴趣的:(我的博客)