Guest User

Untitled

a guest
Mar 24th, 2012
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1. /*
  2.  * File: simpio.h
  3.  * Version: 1.0
  4.  * Last modified on Wed Apr 27 07:29:13 1994 by eroberts
  5.  * -----------------------------------------------------
  6.  * This interface provides access to a simple package of
  7.  * functions that simplify the reading of input data.
  8.  */
  9.  
  10. #ifndef _simpio_h
  11. #define _simpio_h
  12.  
  13. #include "genlib.h"
  14.  
  15. /*
  16.  * Function: GetInteger
  17.  * Usage: i = GetInteger();
  18.  * ------------------------
  19.  * GetInteger reads a line of text from standard input and scans
  20.  * it as an integer.  The integer value is returned.  If an
  21.  * integer cannot be scanned or if more characters follow the
  22.  * number, the user is given a chance to retry.
  23.  */
  24.  
  25. int GetInteger(void);
  26.  
  27. /*
  28.  * Function: GetLong
  29.  * Usage: l = GetLong();
  30.  * ---------------------
  31.  * GetLong reads a line of text from standard input and scans
  32.  * it as a long integer.  The value is returned as a long.
  33.  * If an integer cannot be scanned or if more characters follow
  34.  * the number, the user is given a chance to retry.
  35.  */
  36.  
  37. long GetLong(void);
Advertisement
Add Comment
Please, Sign In to add comment