int main() { int gdriver, gmode, i; int arw[16]={200,102,300,102,300,107,330, 100,300,93,300,98,200,98,200,102 }; gdriver=DETECT; initgraph ( &gdriver, &gmode, "c:\\caic\\bgi" ); setbkcolor ( BLUE ); cleardevice(); setcolor ( 12 ); /*设置作图颜色*/ drawpoly ( 8, arw ); /*画一箭头*/ getch(); closegraph(); return 0; }