procedure TForm1.Button1Click(Sender: TObject);
var
s, s1, s2: string;
i, j: integer;
begin
s:= '';
s1:= '';
s2:= '';
memo2.Clear;
for i := 0 to memo1.Lines.Count - 1 do
begin
s1:= memo1.Lines.Strings[i];
for j := 1 to length(s1) do
begin
if s1[j] <> ' ' then
s:= s + s1[j]
else
begin
if length(s) = 10 then
if s = '5132516132' then
s2:= s2 + 'Ф'
else
if s = '3215112321' then
s2:= s2 + 'К'
else
if s = '3215111111' then
s2:= s2 + 'З';
s:= '';
end;
end;
if s2 <> '' then
memo2.Lines.Add(s2);
s2:= '';
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
s, s1, s2: string;
i, j: integer;
begin
s:= '';
s1:= '';
s2:= '';
memo2.Clear;
j:= 1;
for i := 0 to memo1.Lines.Count - 1 do
begin
s1:= memo1.Lines.Strings[i];
for j := 1 to length(s1) + 1 do
begin
if (s1[j] <> ' ') and (j <> length(s1) + 1) then
s:= s + s1[j]
else
begin
if length(s) = 10 then
if s = '5132516132' then
s2:= s2 + 'Ф'
else
if s = '3215112321' then
s2:= s2 + 'К'
else
if s = '3215111111' then
s2:= s2 + 'З';
s:= '';
end;
end;
if s2 <> '' then
memo2.Lines.Add(s2);
s2:= '';
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
s, s1, s2: string;
i, j: integer;
begin
s:= '';
s1:= '';
s2:= '';
memo2.Clear;
j:= 1;
for i := 0 to memo1.Lines.Count - 1 do
begin
s1:= memo1.Lines.Strings[i];
for j := 1 to length(s1) + 1 do
begin
if (s1[j] <> ' ') and (j <> length(s1) + 1) then
s:= s + s1[j]
else
begin
if length(s) = 10 then
if s = '5132516132' then
s2:= s2 + 'Ф'
else
if s = '3215112321' then
s2:= s2 + 'К'
else
if s = '3215111111' then
s2:= s2 + 'З';
{и так далее}
{....................................}
s:= '';
end;
end;
if s2 <> '' then
memo2.Lines.Add(s2);
s2:= '';
end;
end;
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.