ex11.pp 363 B

1234567891011121314151617181920
  1. Program Example10;
  2. uses Crt;
  3. { Program to demonstrate the InsLine function. }
  4. begin
  5. ClrScr;
  6. WriteLn;
  7. WriteLn('Line 1');
  8. WriteLn('Line 2');
  9. WriteLn('Line 2');
  10. WriteLn('Line 3');
  11. WriteLn;
  12. WriteLn('Oops, Line 2 is listed twice,',
  13. ' let''s delete the line at the cursor postion');
  14. GotoXY(1,3);
  15. ReadKey;
  16. DelLine;
  17. GotoXY(1,10);
  18. end.