Dibujar
Publicado por Graciela (6 intervenciones) el 21/04/2012 16:46:24
Hola que tal, quiero dibujar los ejes cartesianos , osea en x e y, y que en la interseccion haya un +,
hasta ahora hice esto
Type
Tmatriz = array [ 1..7,1..9] of char;
Procedure Cargamatriz (var recibe:Tmatriz);
var i,j :byte;
begin
clrscr;
for j:= 1 to 3 do
begin
writeln(' | ');
end;
for i:= 1 to 4 do
write('-');
for i:=6 to 7 do write('-');
for j:= 5 to 9 do
begin
writeln(' | ');
end;
end;
Pero me lo dibuja mal :S, alguna ayudita?
hasta ahora hice esto
Type
Tmatriz = array [ 1..7,1..9] of char;
Procedure Cargamatriz (var recibe:Tmatriz);
var i,j :byte;
begin
clrscr;
for j:= 1 to 3 do
begin
writeln(' | ');
end;
for i:= 1 to 4 do
write('-');
for i:=6 to 7 do write('-');
for j:= 5 to 9 do
begin
writeln(' | ');
end;
end;
Pero me lo dibuja mal :S, alguna ayudita?
Valora esta pregunta


0