Code:
#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <stdlib.h>
#include <dos.h>
void dealornodeal(){
int gd=DETECT,gm;
initgraph(&gd,&gm,"");
setfillstyle(1,7);
bar(32,102,608,188);
setfillstyle(1,14);
bar(40,110,275,180);
setfillstyle(1,14);
bar(310,110,600,180);
setfillstyle(1,8);
bar(320,120,590,170);
setcolor(8);settextstyle(0,0,7);
outtextxy(50,122,"DEAL");
setcolor(14);settextstyle(0,0,5);
outtextxy(327,128,"NO");
setcolor(14);settextstyle(0,0,5);
outtextxy(426,128,"DEAL");
setcolor(14);settextstyle(0,0,3);
outtextxy(282,120,"O");
setcolor(14);settextstyle(0,0,3);
outtextxy(282,150,"R");
setfillstyle(1,11);
bar(185,300,295,335);
setcolor(11);
rectangle(182,297,298,338);
setcolor(8);settextstyle(1,0,4);
outtextxy(196,299,"[S]tart");
setfillstyle(1,12);
bar(325,300,435,335);
setcolor(12);
rectangle(322,297,438,338);
setcolor(15);settextstyle(1,0,4);
outtextxy(332,299,"[R]ules");
getch();
closegraph();
}
void main(){
int s,x,x1=320,y1=240,x2=320,y2=240;
int gd=DETECT,gm;
initgraph(&gd,&gm,"");
srand(time(NULL));
for(;;x1--,x2++,y1++,y2--){
setcolor(15);
rectangle(x1,y1,x2,y2);
delay(2000);
if(x1==0)
break;
}
setfillstyle(1,8);bar(10,10,630,470);
setcolor(LIGHTRED);settextstyle(3,0,8);
outtextxy(190,100,"ALPAKAN");
setcolor(LIGHTBLUE);settextstyle(1,0,10);
outtextxy(120,75,"S");
setcolor(YELLOW);settextstyle(2,0,6);
outtextxy(468,175,"GROUP");
setcolor(WHITE);settextstyle(2,0,7);
outtextxy(80,240,"CASE STUDY - Data Structures and Algorithm");
setcolor(LIGHTCYAN);settextstyle(0,0,1);
outtextxy(250,315,"Lli¤o Del Rosario");
outtextxy(250,330,"Kimber Lloyd Loza");
outtextxy(250,345,"Enjelmar Sumang");
outtextxy(250,360,"Edison Tua¤o");
for(x=1;;x++){
setcolor(LIGHTGREEN);settextstyle(2,0,6);
outtextxy(185,420,"<Press Any Key to Continue>");
delay(100000000000);
setcolor(BLACK);settextstyle(2,0,6);
outtextxy(185,420,"<Press Any Key to Continue>");
delay(100000000000);
if(kbhit())
break;
}
for(s=1;s<=4;s++){
sound(5000-1000*s);
delay(10000000);
}
nosound();
closegraph();
return dealornodeal();
}