//************************************************************************** // header file for a library of auxiliary input output functions //************************************************************************** #ifndef MYIO_H #define MYIO_H #include using namespace std; //************************************************************************** // function to clear the cin stream up to & including the next new line //************************************************************************** void clrStream(); //************************************************************************** // function to get a character response from the user and use the default // response if the user just hits the return key //************************************************************************** char getResponse(char defalt); //************************************************************************** // fucntion to obtain a valid integer from the user //************************************************************************** void getValid(int& i); //************************************************************************** // function to obtain a valid real from the user //************************************************************************** void getValid(double& d); //************************************************************************** // function to attach a file to an input stream //************************************************************************** void openIn(ifstream& iStr); //************************************************************************** // function to attach a file to an output stream //************************************************************************** void openOut(ofstream& oStr); #endif