Контрольная работа: Упорядочивание элементов файла
WriteLn('| 3. Find need records in list |');
WriteLn('| |');
WriteLn('| 4. Save list to file |');
WriteLn('| |');
WriteLn('| 5. Print list |');
WriteLn('| |');
WriteLn('| 6. Quit |');
WriteLn('---------------------------------');
repeat
c:= ReadKey;
until (c in ['1', '2','3', '4', '5', '6', #27]) ;
ViewMenu:= c
end;
begin
c:= #0;
RecCount:= 0;
FileName:= '';
ClrScr;
Window(23,15,75,30);
while true do
begin
c:= ViewMenu;
ClrScr;
case c of
'1': begin
RecArrInit(RecArr);
RecCount:= FillRecArr(RecArr);
SortRecArr(RecArr);
WriteLn('Input ', RecCount, ' records in list.')