Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void afisare(int dim,int *poligon)
- {
- drawpoly(dim,poligon);
- }
- int main()
- {
- initwindow(1000,1000);
- int O[120]=
- {
- 468, 36, 305, 36, 305,220, 313,228, 804,228,
- 751,161, 751,161, 730,139, 706,119, 682,101,
- 655, 85, 628, 71, 600, 59, 571, 50, 541, 43,
- 510, 38, 480, 36, 449, 36, 468, 36, 36,260,
- 36,228, 397,228, 397,851, 366,848, 336,842,
- 306,834, 276,824, 276,284, 252,260, 36,260
- };
- int poli_1[]= { 468, 36, 305, 36, 305,220, 313,228, 804,228,
- 751,161, 751,161, 730,139, 706,119, 682,101,
- 655, 85, 628, 71, 600, 59, 571, 50, 541, 43,
- 510, 38, 480, 36, 449, 36, 468, 36
- };
- afisare(19,poli_1);
- int poli_2[]= {36,260,36,228, 397,228, 397,851, 366,848, 336,842,
- 306,834, 276,824, 276,284, 252,260, 36,260
- };
- afisare(11,poli_2);
- while(!kbhit());
- closegraph();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement