ΠΡΠΎΡΠ΅Π΄ΡΡΠ° Delete (), ΠΠ°ΡΠΊΠ°Π»Ρ.
ΠΡΠΎΡΠ΅Π΄ΡΡΠ° Delete (), ΠΠ°ΡΠΊΠ°Π»Ρ.
ΠΡΠΎΡΠ΅Π΄ΡΡΠ° Delete ( Str; I, N ) ΡΠ΄Π°Π»ΡΠ΅Ρ Π² ΡΡΡΠΎΠΊΠ΅ Str, ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ ΡΠΈΠΌΠ²ΠΎΠ»ΠΎΠ² N, Π½Π°ΡΠΈΠ½Π°Ρ Ρ ΠΏΠΎΠ·ΠΈΡΠΈΠΈ I.
program Task_Str6;
{Π·Π°Π΄Π°ΡΠΈ Π½Π° ΡΡΡΠΎΠΊΠΈ ΠΏΠ°ΡΠΊΠ°Π»Ρ Ρ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ΠΌ}
{Delete ( Str; i, n ), ΠΠ°ΡΠΊΠ°Π»Ρ}
var
i, n, m: integer;
s_Str: string;
begin
s_Str := 'ΠΠΎΠΌΠ° Π±ΡΠ»ΠΈ Π²ΡΡΠ΅, ΡΠ΅ΠΌ Π΄Π΅ΡΠ΅Π²ΡΡ.';
n := Length(s_Str);
m := n - 10;
Delete(s_Str, 10, m);
n := Length(s_Str);
for i := 1 to n do
Write(s_Str[i]);
Writeln;
ReadLn();
end.
Π Π΅Π·ΡΠ»ΡΡΠ°Ρ:
ΠΡΠΎΡΠ΅Π΄ΡΡΠ° Delete (), ΠΠ°ΡΠΊΠ°Π»Ρ.