[1..3] of integer

Anuncio
uses crt;
type
vect = array [1..3] of integer;
var
s, m, var_x, var_c, x, var_y, var_i: integer;
vec:vect;
function crono():integer;
begin
s:=1;
clrscr;
Repeat
gotoxy(20,10);
writeln(m, ' : ', s);
s:=s+1;
Delay(500);
if(s=60) then
begin
s:=0;
m:=m+1;
clrscr;
end;
Until keypressed;
readkey;
end;
function mostrart():integer;
begin
vec[1]:=m;
vec[2]:=s;
begin
writeln('el tiempo guardado es: ');
for var_i:= 1 to 2 do
begin
write(vec[var_i],':');
end;
readkey;
end;
end;
begin
crono();
mostrart();
end.
Descargar