home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cenvi23.zip / QUOTE.CMM < prev    next >
Text File  |  1996-02-20  |  2KB  |  40 lines

  1. //********************************************************************
  2. //*** Quote.cmm - Display a quote randomly selected from a list of ***
  3. //*** ver.2       silly quotes. Can brighten your logins.          ***
  4. //********************************************************************
  5.  
  6. quote = {
  7.    "Me and Rex took the car, ha ha.  Stay home.  Stay!",
  8.    "I'd rather have a bottle in front of me than a frontal lobotomy.",
  9.    "Anything sufficiently vague shall always ring true.",
  10.    "I'll be back.",
  11.    "When law has been outlawed only outlaws will have lawyers.",
  12.    "What?!!  If that's not your tongue, then whose is it?",
  13.    "What's another word for thesaurus?",
  14.    "The hills are alive with the sound of music...  EEEEEK!!",
  15.    "Freud sez: Is that a compiler in your pocket, or do you have C-Envi?",
  16.    "Why am I soft in the middle? The rest of my life is so hard.",
  17.    "One man claims there is a God\n"
  18.       "   The next is sure there is not\n"
  19.       "While God, in all His glory\n"
  20.       "   Looks down,\n"
  21.       "      and laughs\n"
  22.       "         and says, \"So What?\"\n"
  23.       "For God, Omnipotent God\n"
  24.       "   Doesn't give a doodly-squat.",
  25.    "No soap. Radio.",
  26.    "Time's a crutch,\n   Eat mandarin oranges.",
  27.    "What's that smell?",
  28.    "Orange you glad I didn't say banana?",
  29.    "That's a pretty good pan.",
  30.    "I can code better than anyone who codes faster,\n"
  31.       "  and faster than anyone who codes better.",
  32. };
  33.  
  34. ChoiceCount = GetArraySpan(quote) + 1;
  35. srand();    // initialize random number generator
  36. choice = quote[ rand() % ChoiceCount ];
  37. if !defined(_WIN_) && !defined(_WIN32_)
  38.    printf("\n%s\n\n",choice)   // pick one of the choices at random
  39.  
  40.