Más contenido relacionado
Más de Elaine Cecília Gatto (20)
Algoritmos - Consulta Geral em Arquivos
- 1. CONSULTA GERAL
program consulta_geral;
uses crt;
type carro = record
placa : string;
marca : string;
ano : integer;
end;
frota = file of carro;
var
detran : frota;
carros : carro;
begin
clrscr;
assign(detran, ‘carros.dat’);
reset(detran);
while(not eof(detran))do
begin
read(detran, carros);
writeln(‘placa = ’, carros.placa);
writeln(‘marca = ’, carros.marca);
writeln(‘ano = ’, carros.ano);
readln;
end;
close(detran);
end.