="justify">}
} = 1, 0,
} Podmenu (int midx, int midy, int h) {((midx +110), midy + h * 30); ("Po Ubivaniju"); ((midx +110), midy + h * 30 +30); ("Po Vozrastaniju"); 0;
} F1 (int midx, int midy) {((midx-7 * 14), midy-30); ("Zadanie parametrov
} F (int midx, int midy, int h, int p) {y = midy; (int i = -30; i <= 120; i + = 30) {
if (p == 0) {
setfillstyle (1,7);
bar (midx-100, y-10 + i, midx +100, y +10 + i);
}
if ((p == 1) | | (-1 == (i/30)) | | ((i/30) == 4)) {
setfillstyle (1,2);
bar (midx-100, y-10 + i, midx +100, y +10 + i);
}
if (h == (i/30)) {
setfillstyle (1,3);
bar (midx-100, y-10 + i, midx +100, (y +10) + i);
}
}
return F1 (midx, midy);
} F2 (int midx, int midy, int h, int k) {
poly [12]; (int i = 0; i <60; i + = 30) {(1,2); [0] = midx +100; [1] = poly); (midx +101, midy + h * 30 + i, 15);
if (k == (i/30)) {
setfillstyle (1,3);
poly [0] = midx +100;
poly [1] = midy + h * 30 + i;
poly [2] = midx +110;
poly [3] = midy +10 + h * 30 + i;
poly [4] = midx +230;
poly [5] = midy +10 + h * 30 + i;
poly [6] = midx +230;
poly [7] = midy-10 + h * 30 + i;
poly [8] = midx +110;
poly [9] = midy-10 + h * 30 + i;
poly [10] = midx +100;
poly [11] = midy + h * 30 + i;
drawpoly (6, poly);
floodfill (midx +101, midy + h * 30 + i, 15);
}
} (midx, midy, h); 0;
} main (void)
{gdriver = DETECT, gmode, errorcode; midx, midy, i; (& gdriver, & gmode, ""); = getmaxx ()/2; = getmaxy ()/ 3; j = midy-30; h = -1, k = 0, p = 0; long int iter = 0; x; * s; * d; metod, r; int razmer; time1, s1; (x! = 113) {
F (midx, midy, h, p);
x = getch ();
if (x == 80) {
h + +;
setfillstyle (0,2);
bar (0, midy/2, midx/2 +60, midy * 2);
bar (0, midy/2, midx * 2, midy/2 +40);
bar (midx/25, midy +170, midx, midy +190);
}
if (x == 72) {