UkrReferat.com

: 75850
: 2016-12-08
7 17



$

'

 

:   

, , :

- ( )
,
Word Doc
1544
178

//---------------------------------------------------------

#include

#include

#include

#include

#include // II

#include

#define pi 3.14

#define ESC 27

#define A 97

#define B 98

//---------------------------------------------------------

float robota(void)

{

clrscr();

int gdriver=DETECT,gmode,errorcode;

float j,tmin,tmax,i,l,p;

initgraph(&gdriver,&gmode,"");

errorcode=graphresult();

if(errorcode!=grOk)

{printf("Graphics error:%s\n",grapherrormsg(errorcode));

printf("Press any key to halt:");

getch();exit(1);}

printf("\ni ⥬ tmin=");

scanf("%f",&tmin);

printf("\ni ⥬ tmax=");

scanf("%f",&tmax);

setgraphmode(getgraphmode()); // i ⥪⮢ ०

setlinestyle(0,4,3); // ⨫ iii

setcolor(2); // i

rectangle(10,10,630,467); // 㤮 אַ⨪

//---------------------㤮 奬---------------------------------

setcolor(2);

setlinestyle(0,0,0);

circle(403,260,3); // 㤮

circle(403,105,3);

line(230,105,400,105); // 㤮 iii

line(320,105,320,125);

line(230,105,230,125);

line(230,140,230,180);

line(228,158,230,165);

line(232,158,230,165);

line(320,140,320,205);

line(320,225,320,260);

line(305,205,320,225);

setlinestyle(0,4,3);

rectangle(215,125,245,140); // 1

rectangle(305,125,335,140); // 2

setcolor(15); // ମ

setlinestyle(0,0,0);

arc(230,172,0,180,7);

line(223,172,223,260);

line(237,172,237,260);

arc(230,271,122,416,12); // 㤮 㣨

setcolor(8);

arc(230,172,0,180,5);

line(225,172,225,262);

line(235,172,235,262);

line(225,253,235,253);

arc(230,271,120,416,10);

setfillstyle(1,4); // ⨫

floodfill(230,254,8); // न i i

setcolor(8);

line(210,253,220,253); // 誠 ମ

line(215,251,220,251);

line(215,249,220,249);

line(215,247,220,247);

line(215,245,220,245);

line(210,243,220,243);

line(215,241,220,241);

line(215,239,220,239);

line(215,237,220,237);

line(215,235,220,235);

line(210,233,220,233);

line(215,231,220,231);

line(215,229,220,229);

line(215,227,220,227);

line(215,225,220,225);

line(210,223,220,223);

line(215,221,220,221);

line(215,219,220,219);

line(215,217,220,217);

line(215,215,220,215);

line(210,213,220,213);

line(215,211,220,211);

line(215,209,220,209);

line(215,207,220,207);

line(215,205,220,205);

line(210,203,220,203);

line(215,201,220,201);

line(215,199,220,199);

line(215,197,220,197);

line(215,195,220,195);

line(210,193,220,193);

line(215,191,220,191);

line(215,189,220,189);

line(215,187,220,187);

line(215,185,220,185);

line(210,183,220,183);

setcolor(2);

line(237,260,400,260);

line(237,260,250,258);

line(237,260,250,262);

setlinestyle(2,4,0);

-----> Page:

0 [1] [2] [3]

ò