home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / W / ATIMPY.ZIP / STIMPY.C < prev   
C/C++ Source or Header  |  1992-02-18  |  816b  |  54 lines

  1. #include <dos.h>
  2. #include <math.h>
  3. #include <conio.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <stdarg.h>
  7. #include <graphics.h>
  8.  
  9. /*#define n     1
  10. #define north 1
  11. #define s     2
  12. #define south 2*/
  13.  
  14. main()
  15. {
  16.   char name[30];
  17.   char nogo[30];
  18.   char ch,s1[10];
  19.  
  20.   puts("Welcome! You have just entered Stimpy's Realm! You have just stepped");
  21.   puts("into a huge masion and the heavy wooden door has locked behind you!");
  22.   printf("What is your name? ");
  23.   scanf("%s",name);
  24.   printf("Goodluck in your quest %s\n",name);
  25.  
  26.   strcpy(nogo,"You can't go that way!");
  27.   printf("? ");
  28.   scanf("%s",ch);
  29.    { switch (ch) {
  30.       case 'N':
  31.     puts("You are at the bottom of the stairs");
  32.     break;
  33.       case 'S':
  34.     puts(nogo);
  35.       break;
  36.       }
  37.     }
  38.  
  39. }
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.