/*在TC編譯器下運(yùn)行,在VC下要添加頭文件"graphics.h"*/
#include
main(){
intgraphdriver=DETECT;
intgraphmode;
initgraph(&graphdriver,&graphmode,"");/*初始化*/
setcolor(RED);/*設(shè)置顏色*/
circle(100,100,30);/*畫(huà)圓函數(shù),第一個(gè)參數(shù)為圓心的橫坐標(biāo),第二個(gè)參數(shù)為縱坐標(biāo),第三個(gè)為半徑*/
getch();
closegraph();
}