uses graph;
var
gd, gm: integer;
X, Y: integer;
f: text;
begin
assign(f, 'strelka.txt');
reset(f);
initgraph(gd, gm, '');
if graphresult = grOk then begin
readln(f, X, Y);
moveto(X, Y);
while not eof(f) do begin
readln(f, X, Y);
lineto(X, Y);
end;
readln;
end
else writeln('error...');
close(f);
end.
uses graph;
var
gd, gm: integer;
X, Y: integer;
f: text;
begin
assign(f, 'strelka.txt');
reset(f);
initgraph(gd, gm, '');
if graphresult = grOk then begin
readln(f, X, Y);
moveto(X, Y);
while not eof(f) do begin
readln(f, X, Y);
lineto(X, Y);
end;
readln;
end
else writeln('error...');
close(f);
end.
program fd;
uses graph;
var
w1,w2,w3,w4,w5,w6,w7,w8,w9,w10,w11,w12:integer;
a,b:integer;
rsd:text;
begin
a:=detect;
initgraph(a,b,'');
assign(rsd,'texter.txt');
reset(rsd);
read(rsd,w1,w2);
read(rsd,w3,w4);
read(rsd,w5,w6);
read(rsd,w7,w8);
read(rsd,w9,w10);
read(rsd,w11,w12);
line(w2,w1,w4,w3);
line(w4,w3,w8,w7);
line(w8,w7,w5,w6);
line(w5,w6,w9,w10);
line(w9,w10,w11,w12);
close(rsd);
readln;
closegraph;
end.
program fd;
uses graph;
var
w1,w2,w3,w4,w5,w6,w7,w8,w9,w10,w11,w12:integer;
a,b:integer;
rsd:text;
begin
a:=detect;
initgraph(a,b,'');
assign(rsd,'texter.txt');
reset(rsd);
read(rsd,w1,w2);
read(rsd,w3,w4);
read(rsd,w5,w6);
read(rsd,w7,w8);
read(rsd,w9,w10);
read(rsd,w11,w12);
line(w2,w1,w4,w3);
line(w4,w3,w8,w7);
line(w8,w7,w5,w6);
line(w5,w6,w9,w10);
line(w9,w10,w11,w12);
close(rsd);
readln;
closegraph;
end.