/* * @topic T00260 string input and validation using 2 source files * @brief input and validation functions are declared here */ /* This is our header file. Any time a source file (.CPP) needs to call our input or validation functions, they can simply #include this file. This is convinient, because the program can be very easily split into multiple source files. */ // Header guards #ifndef _USER_INPUT_H_ #define _USER_INPUT_H_ #include <string> #include <iostream> // function declarations std::string get_user_input( std::string prompt ); bool validate_user_input( std::string str ); #endif //_USER_INPUT_H_