tbs0037.pp 392 B

123456789101112131415161718192021222324252627282930313233
  1. {$ifdef go32v2}
  2. {$define OK}
  3. {$endif}
  4. {$ifdef linux}
  5. {$define OK}
  6. {$endif}
  7. {$ifdef win32}
  8. {$define OK}
  9. {$endif}
  10. {$ifdef OK}
  11. uses
  12. graph,
  13. crt;
  14. var
  15. gd,gm : integer;
  16. {$endif OK}
  17. begin
  18. {$ifdef OK}
  19. gd:=detect;
  20. initgraph(gd,gm,'');
  21. line(1,1,100,100);
  22. {readkey;}
  23. setgraphmode($107);
  24. line(100,100,1024,800);
  25. {readkey;}
  26. delay(1000);
  27. closegraph;
  28. {$endif OK}
  29. end.