4.各种清屏的姿势
①clrscr
还有什么能说的呢?唯一的作用:全屏清掉
②delline
清掉光标所在行,以下行全部向上(有人用来滚动屏幕)
【栗子】
uses Crt;
begin
ClrScr; //clrscr常在程序头出现,删掉那一串编译信息
WriteLn;
WriteLn('Line 1');
WriteLn('Line 2');
WriteLn('Line 2');
WriteLn('Line 3');
WriteLn;
WriteLn('Oops, Line 2 is listed twice,',
' let''s delete the line at the cursor postion');
GotoXY(1,3);
ReadKey;
DelLine;
GotoXY(1,10);
end.