Sigo sin poder correrlo :(
Publicado por Luis (29 intervenciones) el 13/06/2012 12:52:03
Hola, todavia he tratado de correr el programa decorazon y aun sigo sin poder correrlo ayuda plis, ya no se q mas hacer, no se puede hacer pero sin utilizar la unidad GRAPH?¿?¿?¿?¿?¿?¿?¿?
program corazon;
uses
crt,GRAPH;
const mcorazon : array[1..12,1..15] of byte = (
(0,0,1,1,1,0,0,0,0,0,1,1,1,0,0),
(0,1,0,0,0,1,0,0,0,1,0,0,0,1,0),
(1,0,0,0,0,0,1,0,1,0,0,0,0,0,1),
(1,0,0,0,0,0,0,1,0,0,0,0,0,0,1),
(1,0,0,0,0,0,0,0,0,0,0,0,0,0,1),
(0,1,0,0,0,0,0,0,0,0,0,0,0,1,0),
(0,0,1,0,0,0,0,0,0,0,0,0,1,0,0),
(0,0,0,1,0,0,0,0,0,0,0,1,0,0,0),
(0,0,0,0,1,0,0,0,0,0,1,0,0,0,0),
(0,0,0,0,0,1,0,0,0,1,0,0,0,0,0),
(0,0,0,0,0,0,1,0,1,0,0,0,0,0,0),
(0,0,0,0,0,0,0,1,0,0,0,0,0,0,0));
var driver, modo : integer;
x, y : integer;
begin
driver := detect;
initgraph(driver, modo,'c:\progra~1\TP\BGI');
if graphresult <> 0 then
begin
halt(1);
end
else
begin
for y := 1 to 12 do
for x := 1 to 15 do
begin
if mcorazon[y,x] = 1 then
begin
putpixel(100 + x * 4,130 + y * 4,12);
putpixel(100 + (x * 4) - 1,130 + (y * 4) - 1,12);
putpixel(100 + (x * 4) + 1,130 + (y * 4) + 1,12);
putpixel(100 + x * 2,100 + y * 2,10);
putpixel(100 + x ,80 + y ,15);
end;
end;
readln;
closegraph;
end;
end.
program corazon;
uses
crt,GRAPH;
const mcorazon : array[1..12,1..15] of byte = (
(0,0,1,1,1,0,0,0,0,0,1,1,1,0,0),
(0,1,0,0,0,1,0,0,0,1,0,0,0,1,0),
(1,0,0,0,0,0,1,0,1,0,0,0,0,0,1),
(1,0,0,0,0,0,0,1,0,0,0,0,0,0,1),
(1,0,0,0,0,0,0,0,0,0,0,0,0,0,1),
(0,1,0,0,0,0,0,0,0,0,0,0,0,1,0),
(0,0,1,0,0,0,0,0,0,0,0,0,1,0,0),
(0,0,0,1,0,0,0,0,0,0,0,1,0,0,0),
(0,0,0,0,1,0,0,0,0,0,1,0,0,0,0),
(0,0,0,0,0,1,0,0,0,1,0,0,0,0,0),
(0,0,0,0,0,0,1,0,1,0,0,0,0,0,0),
(0,0,0,0,0,0,0,1,0,0,0,0,0,0,0));
var driver, modo : integer;
x, y : integer;
begin
driver := detect;
initgraph(driver, modo,'c:\progra~1\TP\BGI');
if graphresult <> 0 then
begin
halt(1);
end
else
begin
for y := 1 to 12 do
for x := 1 to 15 do
begin
if mcorazon[y,x] = 1 then
begin
putpixel(100 + x * 4,130 + y * 4,12);
putpixel(100 + (x * 4) - 1,130 + (y * 4) - 1,12);
putpixel(100 + (x * 4) + 1,130 + (y * 4) + 1,12);
putpixel(100 + x * 2,100 + y * 2,10);
putpixel(100 + x ,80 + y ,15);
end;
end;
readln;
closegraph;
end;
end.
Valora esta pregunta


0