Лабораторная работа: Работа с типами данных записи
End;
Procedure Viewing;
Begin
Header('Prosmotr');
For i:=1 to MaxIndex Do
With a[i] Do Begin
Write(a[i].Familia,' ',a[i].Imia,' ',a[i].Otchestvo);
WriteLn(' Mesto Progivanuia: ',a[i].MestoProgivanuia);
Write('Data rogdenuia: ',a[i].Day,'.',a[i].Month,'.',a[i].Year);
write('UchebnaiaGruppa: ',a[i].UchebnaiaGruppa);
write('NomerTelefona: ',a[i].NomerTelefona);
End;
ReadKey;
End;
Procedure Editing;
Begin
Repeat
Header('Uzmenenie');
Write('Vvedite nomer kartochki: ');
ReadLn(i);
With a[i] Do Begin
Write('Familia: '); ReadLn(a[i].Familia);
Write('Imia: '); ReadLn(a[i].Imia);
Write('Otchestvo: '); ReadLn(a[i].Otchestvo);
Write('Data rogdenuia: '); ReadLn(a[i].Day,a[i].Month,a[i].Year);
Write(' Mesto Progivanuia: '); Readln(a[i].MestoProgivanuia);
write('NomerTelefona:'); Readln (a[i].NomerTelefona);
End;
WriteLn;