int main() { Directory d; // Create and initialize a new directory. ShowMenu(); // Display the menu. char command; // menu command entered by user do { command = GetCommand(); // Retrieve a command. switch (command) { case 'I': d.Insert(); break; case 'L': d.Lookup(); break; case 'R': d.Remove(); break; case 'U': d.Update(); break; case 'D': d.DisplayDirectory(); break; case '?': ShowMenu(); break; case 'Q': break; } } while (command != 'Q'); return 0; }