ispit1:Byte;
ispit2:Byte;
ispit3:Byte;
ispit4:Byte;
ispit5:Byte;
Writeln('Введите 5 оценок: ');
for j:=1 to 5 do
begin
write('Оценка ',j,'=');
readln(t.isp[j]);
end;
type Student=Record
index_gr:String;
fio:String;
ispit:array[1..5] of byte;
uchast:Byte;
j:byte;
End;
Const razm_stip=400;
Var ch:Byte;
f:File of Student;
Procedure Sozdanie;
Var t:Student;
n:String;
c:Char;
j:byte;
Begin
Write('Введите имя файла: ');
Readln(n);
Assign(F,n);
Rewrite(F);
Repeat
Write('Введите индекс группы: ');
Readln(t.index_gr);
Write('Введите ФИО студента: ');
Readln(t.fio);
Write('Введите 5 оценок: ');
for j:=1 to 5 do
begin
write('Оценка ',j,'=');
readln(t.ispit[j]);
end;
Write('Введите признак участия (1/0): ');
Readln(t.uchast);
Write(f,t);
Write('Вводить следующего студента (у/n)?: ');
Readln(c);
Until c='n';
Close(f);
End;
Procedure Prosmotr;
var t:Student;
n:String;
j:byte;
Begin
Write('Введите имя файла: ');
Readln(n);
Assign(F,n);
Reset(F);
While Not(Eof(f)) do
Begin
Read(f,t);
Writeln('Индекс группы: ', t.index_gr:4, ' ');
Writeln('ФИО студента: ', t.fio:30,' ');
for j:=1 to 5 do
begin
write('Оценка ',j,'=', t.ispit[j]:3,' ');
end;
Writeln('Участие: ', t.uchast:1,' ');
End;
Close(f);
End;
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.