="justify"> if (h == 1) {
moveto (midx/25, midy +20);
outtext ("Metodom vstavki!");
}
if (h == 2) {
moveto (midx/25, midy +20);
outtext ("Metodom protalkivani9!");
}
if (h == 3) {
moveto (midx/25, midy +20);
outtext ("Piramidalinoi sortirovkoi");
}
moveto (midx/25, midy +40);
outtext ("Massiv soxranen v");
moveto (midx/25, midy +60);
outtext ("C :/ BORLANDC/BIN/1.BAK");
ultoa (iter, d, 10);
outtextxy (midx/25, midy +180, "Kolli4estvo itteracii:");
outtextxy (midx/25 +7 * 25, midy +180, d);
}
}
setfillstyle (1,16);
bar (midx +100, midy-90, midx +300, midy +200);
}
if ((x == 13) && (h == 4)) x = 113;
if ((x == 13) && (h == -1)) Zadaniemassiva (midx, midy, metod, razmer, p);
} (); 0;
}
Файл SORTI.CPP
# include
# include
# include
# include
# include
# include
na4alo (double & time1, int & r, double & s1) {min [10]; sec [10]; chas [10]; hund [10]; time t; (& t ); (t.ti_hour, chas, 10); (t.ti_min, min, 10); (t.ti_sec, sec, 10); (t.ti_hund, hund, 10); (int i = 0; min [ i]; i + +); (i == 1) {
min [1] = min [0];
min [0] = '0 ';
sec [2] = ' 0';
} (i = 0; sec [i]; i + +); (i == 1) {
sec [1] = sec [0];
sec [0] = '0 ';
sec [2] = ' 0';
} (i = 0; hund [i]; i + +); (i == 1) {
hund [1] = hund [0];
hund [0] = '0 ';
hund [2] = ' 0';
}
(1,0); (300,390,300 +40 * 7,450); (300,400, "Vremia na4ala
0;
} konec (double time1, int r, int s1)
{r2; min [10]; sec [10]; chas [10]; hund [10]; time [10]; timer [10];
time t2; (& t2);
itoa (t2.ti_hour, chas, 10);
itoa (t2.ti_min, min, 10);
itoa (t2.ti_sec, sec, 10);