#include <graphics.h>
#define R 55
#define D1 (2*R+20)
#define D2 (R+5)
#define A 45
int main()
{
int x=200,y=200;
int x1=x+D1,x2=x+2*D1,x3=x+D1/2,x4=x+D1/2+D1;
initgraph(640,480);
setbkcolor(0xFCFCFC);
setlinewidth(10);
setcolor(BLUE);
circle(x,y,R);
setcolor(DARKGRAY);
circle(x1,y,R);
setcolor(RED);
circle(x2,y,R);
setcolor(YELLOW);
circle(x3,y+D2,R);
setcolor(GREEN);
circle(x4,y+D2,R);
setcolor(BLUE);
arc(x,y,315,315+A,R);
setcolor(DARKGRAY);
arc(x1,y,315,315+A,R);
arc(x1,y,225,225+A,R);
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载