include
#include int main(void) { int gdriver = DETECT, gmode, errorcode; int midx, midy; initgraph(&gdriver, &gmode, \"\"); errorcode = graphresult(); if (errorcode != grOk) { printf(\"Graphics error: %s\\n\grapherrormsg(errorcode)); printf(\"Press any key to halt:\"); getch()(); exit(1); } midx = getmaxx(); midy = getmaxy(); setcolor(getmaxcolor()); rectangle(0, 0, midx, midy); rectangle(135,130,165,210); circle(150,150, 10); circle(150,190, 10); rectangle(0, 0, midx, midy); rectangle(485,130,515,210); circle(500,150, 10); circle(500,190, 10); rectangle(0, 0, midx, midy); rectangle(280,315,360,345); circle(300,330, 10); circle(340,330, 10); rectangle(0, 0, midx, midy); rectangle(280,15,360,45); circle(300,30, 10); circle(340,30, 10); line(145+20, 130,280,130); line(145+20, 210,280,210); #include int main(void) { int gdriver = DETECT, gmode, errorcode; int midx, midy; initgraph(&gdriver, &gmode, \"\"); errorcode = graphresult(); if (errorcode != grOk) { printf(\"Graphics error: %s\\n\grapherrormsg(errorcode)); printf(\"Press any key to halt:\"); getch()(); exit(1); } midx = getmaxx(); midy = getmaxy(); setcolor(getmaxcolor()); rectangle(0, 0, midx, midy); rectangle(135,130,165,210); circle(150,150, 10); circle(150,190, 10); rectangle(0, 0, midx, midy); rectangle(485,130,515,210); circle(500,150, 10); circle(500,190, 10); rectangle(0, 0, midx, midy); rectangle(280,315,360,345); circle(300,330, 10); circle(340,330, 10); rectangle(0, 0, midx, midy); rectangle(280,15,360,45); circle(300,30, 10); circle(340,30, 10); line(145+20, 130,280,130); line(145+20, 210,280,210); #include int main(void) { int gdriver = DETECT, gmode, errorcode; int midx, midy; initgraph(&gdriver, &gmode, \"\"); errorcode = graphresult(); if (errorcode != grOk) { printf(\"Graphics error: %s\\n\grapherrormsg(errorcode)); printf(\"Press any key to halt:\"); getch()(); exit(1); } midx = getmaxx(); midy = getmaxy(); setcolor(getmaxcolor()); rectangle(0, 0, midx, midy); rectangle(135,130,165,210); circle(150,150, 10); circle(150,190, 10); rectangle(0, 0, midx, midy); rectangle(485,130,515,210); circle(500,150, 10); circle(500,190, 10); rectangle(0, 0, midx, midy); rectangle(280,315,360,345); circle(300,330, 10); circle(340,330, 10); rectangle(0, 0, midx, midy); rectangle(280,15,360,45); circle(300,30, 10); circle(340,30, 10); line(360, 130,500-10,130); line(360, 210,500-10,210); line(280, 330-15,280,210); line(360, 330-15,360,210); line(360, 40,360,130); line(280, 40,280,130); setfillstyle(SOLID_FILL, 4); floodfill(500,190 , getmaxcolor()); setfillstyle(SOLID_FILL, 2); floodfill(340, 330, getmaxcolor()); setfillstyle(SOLID_FILL, 4); floodfill(150, 190, getmaxcolor()); setfillstyle(SOLID_FILL, 2); floodfill(340, 30, getmaxcolor()); getch()(); setfillstyle(SOLID_FILL, 0); floodfill(500,190 , getmaxcolor()); setfillstyle(SOLID_FILL, 0); floodfill(340, 330, getmaxcolor()); setfillstyle(SOLID_FILL, 0); floodfill(150, 190, getmaxcolor()); setfillstyle(SOLID_FILL, 0); floodfill(340, 30, getmaxcolor()); setfillstyle(SOLID_FILL, 2); floodfill(500,150 , getmaxcolor()); setfillstyle(SOLID_FILL, 4); floodfill(300, 330, getmaxcolor()); setfillstyle(SOLID_FILL, 2); floodfill(150, 150, getmaxcolor()); setfillstyle(SOLID_FILL, 4); floodfill(300, 30, getmaxcolor()); getch()(); closegraph(); return 0; } 因篇幅问题不能全部显示,请点此查看更多更全内容