Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Game_Play()
- {setcolor(BROWN);
- setfillstyle(SOLID_FILL,7);
- bar(150, 100, 550, 420);
- setlinestyle(0, 0, 4);
- rectangle(150, 100, 550, 420);
- setcolor(8);
- line(250, 100, 250, 420);
- line(350, 100, 350, 420);
- line(450, 100, 450, 420);
- line(150,180 , 550, 180);
- line(150,260 , 550, 260);
- line(150,340 , 550, 340);
- setcolor(RED);
- settextstyle(10, 0, 5);
- for(int i=0,k=1,y=120;i<4;i++,y+=80)
- { for(int j=0,x=190;j<4;j++,k++,x+=100)
- {
- char num[100];
- sprintf(num,"%d",k);
- outtextxy(x,y,num);
- }
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement