Язык:
Русский
English
{Line.PAS}
{ Пример программы для процедуры Line }
uses Crt, Graph;
var
Gd, Gm : Integer;
begin
Gd := Detect;
InitGraph(Gd, Gm, 'X:\BP');
if GraphResult <> grOk then
Halt(1);
Randomize;
repeat
Line(Random(200), Random(200), Random(200), Random(200));
until KeyPressed;
ReadLn;
CloseGraph;
end.
var
Gd, Gm : Integer;
begin
Gd := Detect;
InitGraph(Gd, Gm, 'X:\BP');
if GraphResult <> grOk then
Halt(1);
Randomize;
repeat
Line(Random(200), Random(200), Random(200), Random(200));
until KeyPressed;
ReadLn;
CloseGraph;
end.