i信息学奥赛

加入QQ群:1025629106,或关注微信公众号:i信息学奥赛,获取更多学习资源。

导航

飞机降落

Posted on 2016-12-10 10:20  shnoip  阅读(261)  评论(0编辑  收藏  举报

感谢1402王飞飏同学提供
uses crt;
var
  t:integer;
  i,j,l:byte;
begin
  cursoroff;
  for i:=11 to 22 do begin  
    clrscr;
    textcolor(yellow);
    for j:=1 to 80 do begin
      gotoxy(j,25);         
      write('-');
    end;
    textcolor(green);
    l:=5+(i-10)*3;
    gotoxy(l,i);
    write('\ ');
    gotoxy(l-2,i+1);
    write('>====-');
    gotoxy(l,i+2);
    write('/ ');
    delay(100);
  end;
  t:=100;
  for i:=44 to 74 do begin
    clrscr;
    textcolor(yellow);
    for j:=1 to 80 do begin
      gotoxy(j,25);
      write('-');
    end;
    textcolor(green);
    gotoxy(i,22);
    write('\');
    gotoxy(i-2,23);
    write('>====-');
    gotoxy(i,24);
    write('/');
    delay(t);
    t:=t+10;
  end;
  readln;
end.