100分求水友,wint-tc怎么使用填充函数setfillstyle函数
rt.自个准备学下图形编程,试了一个午休时间,还是没有填充到颜色,看网上说的没找到想要的答案
#include <graphics.h> void main() { int graphdriver = VGA; int graphmode = VGAHI; initgraph(&graphdriver,&graphmode,""); cleardevice(); setcolor(3); setfillstyle(3,2); rectangle(50,50,100,100); getch(); closegraph(); }
