home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_7 / 7.ddi / TFEXMPL.ZIP / PLOST.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  512 b   |  27 lines

  1. /* Copyright (c) 1990, Borland International */
  2. #include <stdio.h>
  3. #include <dos.h>   /* contains prototype for delay() */
  4.  
  5. main()
  6. {
  7.     printf("Entering main\n");
  8.     lost_in_town();
  9.     delay(1000);
  10.     printf("Leaving main\n\n");
  11.     delay(1000);
  12. }
  13.  
  14. lost_in_town()
  15. {
  16.     int i;
  17.     printf("Looking for highway...\n");
  18.     delay(100);
  19.     for (i=0; i<10; i++)
  20.     {
  21.     printf("Ask for directions\n");
  22.     printf("Wrong turn\n\n");
  23.     delay(1000);
  24.     }
  25.     printf("On the road again\n");
  26. }
  27.