home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) 1990, 1992, Borland International */
- #include <stdio.h>
- #include <dos.h> /* contains prototype for delay() */
- void lost_in_town(void);
- void main(void)
- {
- printf("Entering main\n");
- lost_in_town();
- delay(1000);
- printf("Leaving main\n\n");
- delay(1000);
- }
-
- void lost_in_town(void)
- {
- int i;
- printf("Looking for highway...\n");
- delay(100);
- for (i=0; i<10; i++)
- {
- printf("Ask for directions\n");
- printf("Wrong turn\n\n");
- delay(1000);
- }
- printf("On the road again\n");
- }
-