UkrReferat.com

: 75843
: 2016-12-04
7 10



$

'

 

:   

, , :

( )
,
Word Doc
1743
268

#include

#include

#include

#include

#include

#include

void integ(void);

void music(int w)

{ int i;

for(i=1;i

{ sound(1229);

delay(50);

} nosound();

}

void fon(void)

{ int i;

setbkcolor(3);

setcolor(10);

settextstyle( 4,0,7);

outtextxy(220,20,"MENU");

settextstyle( 1,0,4);

setcolor(3);

outtextxy(250,140,"program");

outtextxy(250,240,"tutylka");

outtextxy(250,340,"exit");

}

void menu(int t)

{

setcolor(5);

outtextxy(250,140,"program");

outtextxy(250,240,"tutylka");

outtextxy(250,340,"exit");

setcolor(15);

if(t==1){ outtextxy(250,140,"program"); }

if(t==2) { outtextxy(250,240,"tutylka");

}

if(t==3){ outtextxy(250,340,"exit");

}

}

//--------------- i i--------------

void Titul ()

{

restorecrtmode();

clrscr();

textmode(BW80);

textcolor(7);

cprintf(" ii⢮ i i 㪨 i");

printf("\n");

cprintf(" i쪨 ঠ i稩 i");

printf("\n");

cprintf(" 䥤 i i ⮬⨪");

printf("\n\n\n\n\n");

textcolor(4 + BLINK);

printf(" ");

cprintf(" ");

printf("\n");

textcolor(7);

printf("\t\t");

cprintf(" :\"ணࠬ㢠 ii \"");

printf("\n");

textcolor(7);

printf("\t\t");

cprintf(" ⥬:\"室 祮 i⥣ࠫ");

printf("\n");

printf("\t\t ");

cprintf(" ⮤ iᮠ i ⮤ ।i אַ⨪i\"");

printf("\n\n\n\n\n\n");

textcolor(2);

printf("\t\t\t\t\t\t");

cprintf(" 㤥 讣 ");

printf("\n");

printf("\t\t\t\t\t\t");

cprintf("㯨 -12");

printf("\n");

printf("\t\t\t\t\t\t");

cprintf(" i .");

printf("\n\n\n\n");

printf("\t\t\t ");

textcolor(58);

cprintf("i-2002");

textcolor(WHITE + BLINK );

printf("\n\t\t\t");

cprintf(" i - i");

getch();

setgraphmode(getgraphmode());

fon();

menu(2);

}

int main(void)

{

FILE*tp;

int i=1,q=1;

int j,iii,iiii;

int r=1,re=2,ch;

int gdriver = DETECT, gmode;

initgraph(&gdriver, &gmode, "c:\\bcpp\\bgi");

fon();

menu(1);

n:

z:

a:

while(i>0)

{

ch=getch();

/**/

if(ch==27||(ch==13&&q==3)) goto m;

if(ch==13&&q==2)

{ Titul();

goto n;

}

if(ch==13&&q==1)

{ integ();

goto a; }

if(ch==72)

{

if (q==1) q=3;

else q=q-1;

}

else

{if(ch==77)

{

if (q==3) q=1;

else q=q+1; }

else

{if(ch==80)

{

if (q==3) q=1;

else q=q+1;}

else

{if(ch==75)

{

if (q==1) q=3;

else q=q-1;}}

} }

menu(q);

if (ch==49)

{ re=r;

if (re==1)

{

setfillstyle(1,8);

bar(190,450,420,470);

-----> Page:

0 [1]

ò