home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / EXAMPLES.ARC / CH22EX01.PRO < prev    next >
Encoding:
Text File  |  1988-06-21  |  696 b   |  25 lines

  1. /*
  2.    Turbo Prolog 2.0 Reference Guide Chapter 2,  Example Program 1
  3.    
  4.    Copyright (c) 1986, 88 by Borland International, Inc
  5.    
  6. */
  7. constants
  8.   egagraphic = 1
  9. /* Note that ifdef must start in column 1; don't indent it. */
  10. ifdef egagraphic                    /* if egagrphic is defined, use this goal */
  11.  
  12. goal
  13.   graphics(5, 1, 1),
  14.   write("\nEga Graphics"),
  15.   readchar(_).
  16. /* Note that elsedef must also setart in column 1; don't indent it. */
  17. elsedef                                        /* otherwise, use the next goal */
  18.  
  19. goal
  20.   graphics(1, 1, 3),
  21.   write("\nCga Graphics"),
  22.   readchar(_).
  23. /* Note that enddef must start in column 1 too; don't indent it */
  24.  
  25. enddef