VC++6.0画图
#include<graphics.h>#include<math.h>#include<stdio.h>main(){intgdriver=DETECT.GMODE;i...
#include<graphics.h>
#include<math.h>
#include<stdio.h>
main()
{
int gdriver=DETECT.GMODE;
int a[]={100,100,235,100,290,35,81,77,100,100};
int b[]={100,100,235,100,250,32,100,100};
int c[]={100,100,235,100,190,46,74,115,100,100};
int d[]={235,100,203,62,348,100,235,100};
int e[]={235,100,217,53,360,100,235,100};
int f[]={235,100,246,51,388,100,235,100};
initgraph(&gdriver,&gmode,"c:\tc"};
drawpoly(5,a);
drawpoly(4,b);
drawpoly(5,c);
drawpoly(4,d);
drawpoly(4,e);
drawpoly(4,f);
circle(100,100,30);
circle(348,100,2);
circle(360,100,2);
circle(388,100,2);
arc(235,100,77,129,70);
arc(235,100,77,129,50);
rectangle(334,96,352,104);
rectangle(356,96,364,104);
rectangle(384,96,392,104);
getch();
closegraph();
}
急用!本人财富值用完,请谅解!多谢多谢! 展开
#include<math.h>
#include<stdio.h>
main()
{
int gdriver=DETECT.GMODE;
int a[]={100,100,235,100,290,35,81,77,100,100};
int b[]={100,100,235,100,250,32,100,100};
int c[]={100,100,235,100,190,46,74,115,100,100};
int d[]={235,100,203,62,348,100,235,100};
int e[]={235,100,217,53,360,100,235,100};
int f[]={235,100,246,51,388,100,235,100};
initgraph(&gdriver,&gmode,"c:\tc"};
drawpoly(5,a);
drawpoly(4,b);
drawpoly(5,c);
drawpoly(4,d);
drawpoly(4,e);
drawpoly(4,f);
circle(100,100,30);
circle(348,100,2);
circle(360,100,2);
circle(388,100,2);
arc(235,100,77,129,70);
arc(235,100,77,129,50);
rectangle(334,96,352,104);
rectangle(356,96,364,104);
rectangle(384,96,392,104);
getch();
closegraph();
}
急用!本人财富值用完,请谅解!多谢多谢! 展开
2014-04-11
展开全部
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询