#include <graphics.h>
main(){
initwindow (800,600);
setfillstyle(SOLID_FILL,RED);
bar(0,200,30,500);
setfillstyle(SOLID_FILL,YELLOW);
bar(30,270,60,500);
setfillstyle(LINE_FILL,CYAN);
bar(60,100,90,500);
setfillstyle(LTSLASH_FILL,BLUE);
bar(90,250,120,500);
setfillstyle(SLASH_FILL,GREEN);
bar(120,280,150,500);
setfillstyle(BKSLASH_FILL,WHITE);
bar(150,100,180,500);
setfillstyle(HATCH_FILL,RED);
bar(180,200,210,500);
setfillstyle(XHATCH_FILL,DARKGRAY);
bar(210,400,240,500);
setfillstyle(SOLID_FILL,GREEN);
bar(240,100,270,500);
while (!kbhit( ));
closegraph( );
}
main(){
initwindow (800,600);
setfillstyle(SOLID_FILL,RED);
bar(0,200,30,500);
setfillstyle(SOLID_FILL,YELLOW);
bar(30,270,60,500);
setfillstyle(LINE_FILL,CYAN);
bar(60,100,90,500);
setfillstyle(LTSLASH_FILL,BLUE);
bar(90,250,120,500);
setfillstyle(SLASH_FILL,GREEN);
bar(120,280,150,500);
setfillstyle(BKSLASH_FILL,WHITE);
bar(150,100,180,500);
setfillstyle(HATCH_FILL,RED);
bar(180,200,210,500);
setfillstyle(XHATCH_FILL,DARKGRAY);
bar(210,400,240,500);
setfillstyle(SOLID_FILL,GREEN);
bar(240,100,270,500);
while (!kbhit( ));
closegraph( );
}
No comments:
Post a Comment