Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<graphics.h>
- #include<stdio.h>
- #include<conio.h>
- #include<stdlib.h>
- #include<dos.h>
- #include<math.h>
- int main()
- {
- int gdrive = DETECT, gmode;
- initgraph(&gdrive, &gmode, "..\\bgi");
- setcolor(2);
- rectangle(70,60,400,250);
- setfillstyle(1,2);
- floodfill(200,120,2);
- setcolor(4);
- circle(240,160,50);
- setfillstyle(1,4);
- floodfill(240,160,4);
- setcolor(12);
- rectangle(70,55,75,550);
- setfillstyle(1,12);
- floodfill(71,120,12);
- setcolor(12);
- rectangle(20,550,120,600);
- setfillstyle(1,12);
- floodfill(30,555,12);
- delay(100);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement