home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / gkit.zip / GNOVICE.DOC < prev    next >
Text File  |  1988-05-05  |  585b  |  23 lines

  1.  --- THIS FILE IS RESERVED FOR HELPFUL HINTS FOR NOVICES ---
  2.  
  3. See also GTIPS.DOC
  4.  
  5.  Commonly asked questions about C will be answered here.
  6.  
  7.  What would you like to see in this space?
  8.  
  9. ---
  10.  
  11.  Q: What do I use instead of printf() to send information to the player?
  12.  
  13.  A: Use outstr() or sprintf() and outstr().  You only need to use
  14.     sprintf when you have numbers to print.  For example:
  15.     
  16.     outstr("\nWhat is your name?");
  17.     
  18.     outstr("Today is friday.\n");
  19.     
  20.     outstr(name);
  21.     
  22.     sprintf(gss,"Your score is %d.\n",score); outstr(gss);
  23.