simpio.h File Reference

#include "genlib.h"

Functions

int GetInteger ()
long GetLong ()
double GetReal ()
string GetLine ()

Function Documentation

int GetInteger (  ) 

GetInteger reads a line of text from standard input and scans it as an integer. The integer value is returned. If an integer cannot be scanned or if more characters follow the number, the user is given a chance to retry.

string GetLine (  ) 

GetLine reads a line of text from standard input and returns the line as a string. The newline character that terminates the input is not stored as part of the string that is returned.

long GetLong (  ) 

GetLong reads a line of text from standard input and scans it into a long integer. The long is returned. If the number cannot be scanned or if extra characters follow it, the user is given a chance to retry.

double GetReal (  ) 

GetReal reads a line of text from standard input and scans it as a double. If the number cannot be scanned or if extra characters follow after the number ends, the user is given a chance to reenter the value.


Generated on Mon Feb 12 23:30:08 2007 for CS 106B Libraries by  doxygen 1.5.1