#include #include #include #include #include "MyUtil.h" #include "ActionT.h" using namespace std; const size_t MAX_WORDS{5000}; void ReadWords(); ActionT GetUserAction(); void PerformUserAction(ActionT action, bool & done); int main() { bool done{false}; ActionT action{ActionT::QUIT}; ReadWords(); while (not done) { action = GetUserAction(); PerformUserAction(action, done); } return 0; } void ReadWords(){ cout << "Reading the Words" << endl; } ActionT GetUserAction(){ cout << "Getting the user action" << endl; return ActionT::QUIT; } void PerformUserAction(ActionT action, bool & done) { cout << "Performing the user action" << endl; done = action == ActionT::QUIT; return; }