// PhoneBook.h #ifndef _PhoneBookList_h_ #define _PhoneBookList_h_ #include #include #include #include "PhoneBookList.h" const char kcsFileName[] = "phonebook.txt"; class PhoneBook { public: void run(); private: void display_entry_and_menu() const; void execute(char command, bool & done); PhoneBookList entry_list; }; inline void PhoneBook::display_entry_and_menu() const { using std::cout; using std::endl; using std::string; string long_separator(50, '-'); string short_separator(8, '-'); entry_list.display_current_entry(); cout << long_separator << endl << " next search edit quit\n" << " previous add delete\n" << short_separator << endl; } #endif