Académique Documents
Professionnel Documents
Culture Documents
Type
enseignant = Record
nom,prenom : string[30];
email : string[20];
End;
classe = Record
filiere : string[50];
niveau : string[60];
End;
date = Record
jour : 0..6;
hdebut : integer;
hfin : integer;
End;
cours = Record
types : string[30];
matiere : string[40];
enseignant : enseignant;
classe : classe;
salle : string[50];
date : date;
End;
Procedure afficher_cours(t:tab;n:integer);
var
i:integer;
begin
for i:=1 to n do
begin
writeln('||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||' );
For i:=1 To n Do
With t[i] Do
Begin
writeln('type: ');
writeln(types);
writeln('matiere: ');
writeln(matiere);
With enseignant Do
Begin
writeln('enseignant: ');
writeln(prenom,' ',nom);
End;
With classe Do
writeln('classe: ', niveau,' ',filiere);
writeln('salle: ',salle);
With date Do
Begin
writeln('jour: ',jour);
writeln('heure: ',hdebut,' ',hfin);
End;
writeln( '-------------------------------------------------------------------------------------------' );
End;
end;
end;