#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.rznews.cn/yszx/stbk/5422029441.html
http://www.rznews.cn/yszx/stbk/5422045090.html
http://www.rznews.cn/yszx/stbk/5422037303.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/816963.html
http://www.rznews.cn/yszx/stbk/5420719775.html
http://www.zznews.cn/hyzx/jkxx/5412450621.html
http://www.zznews.cn/hyzx/jkxx/5412457102.html
http://www.zznews.cn/hyzx/jkxx/5412516932.html
http://www.changsha.cn/bj/yl/ylzx/2014/0418/567694.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/816907.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/815090.html
http://www.changsha.cn/bj/yl/ylzx/2014/0418/567694.html
http://www.qdxw.com.cn/yx/dwwf/2373086.html
http://www.zznews.cn/hyzx/jkxx/5416814917.html
http://www.rznews.cn/yszx/stbk/5414238298.html
http://www.zhiyin.cn/ylzx/gzpx/5404463844.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/815104.html
http://www.zznews.cn/hyzx/jkxx/5403900336.html
http://www.rznews.cn/yszx/stbk/5415563753.html
http://www.zznews.cn/hyzx/jkxx/5405337924.html
http://www.rznews.cn/yszx/stbk/5420719775.html
http://www.zznews.cn/hyzx/jkxx/5412433318.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/816907.html
http://www.zznews.cn/hyzx/jkxx/5412441195.html
http://www.zznews.cn/hyzx/jkxx/5412445456.html
http://www.zznews.cn/hyzx/jkxx/5412450621.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/816955.html
http://www.zznews.cn/hyzx/jkxx/5412457102.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/816963.html
http://www.zznews.cn/hyzx/jkxx/5412466489.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/816989.html
http://www.zznews.cn/hyzx/jkxx/5412516932.html
http://www.lfxww.com/2014/shichangshangxun/2014/0418/817007.html
http://www.zznews.cn/hyzx/jkxx/5413452649.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<num;i++)
{
ellipse(250,250,0,360,top,bottom);
top-=5;
bottom+=5;
}
getch();
}