UkrReferat.com

: 75883
: 2016-12-30
7 0



$

'

 

:   

, , :

( )
,
Word Doc
1774
273

#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");

}

}

//---------------?cYYi a?aaii aaai??--------------

void Titul ()

{

restorecrtmode();

clrscr();

textmode(BW80);

textcolor(7);

cprintf(" ?iiaaYaaac acia? i a?? ?ai?");

printf("\n");

cprintf(" icYai?? Yac? aYaic? aicYaa?aYa");

printf("\n");

cprintf(" ?aeYa YY?aaaYai?? i caa???");

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

textcolor(4 + BLINK);

printf(" ");

cprintf("??? ???");

printf("\n");

textcolor(7);

printf("\t\t");

cprintf(" ?aaaa:\"aFaaci a Fa?aici c? \"");

printf("\n");

textcolor(7);

printf("\t\t");

cprintf(" aYa:\"aYi c?cYF iaYFa");

printf("\n");

printf("\t\t ");

cprintf(" Ya i?a i Ya aYaYia ?ai?aa??ic\"");

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

textcolor(2);

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

cprintf("??c aaaYa ?YaeF ?aaaa");

printf("\n");

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

cprintf("Faa?? ?-12");

printf("\n");

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

cprintf("ca? YaFi .");

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

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

textcolor(58);

cprintf("icY-2002");

textcolor(WHITE + BLINK );

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

cprintf(" a?aiai !ai-i?a ?ciea");

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();

/*ia?aieuaiiiy*/

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]

ò