Bangladesh Flag graphics drawing program
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int driver=DETECT,mode=0;
initgraph(&drive,&mode),"C:\\tc\\bgi");
circle(200,160,35);
setfillstyle(1,RED);
floodfill(200,160,WHITE);
rectangle(100,100,300,220);
setfillstyle(1,GREEN);
floodfill(102,102,WHITE);
getch();
}
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int driver=DETECT,mode=0;
initgraph(&drive,&mode),"C:\\tc\\bgi");
circle(200,160,35);
setfillstyle(1,RED);
floodfill(200,160,WHITE);
rectangle(100,100,300,220);
setfillstyle(1,GREEN);
floodfill(102,102,WHITE);
getch();
}
No comments:
Post a Comment
Thank you for visit this site. You will get many programming news from here and learn programming very easily.