#include #include #include using namespace std; #include "Committee.h" int main(){ Committee C; string command; cout << "Enter command (quit, load, save, makechair): "; while(cin >> command && command != "quit"){ // Process COMMAND if (command == "load"){ string location; cout << "Enter location (screen or filename): "; cin >> location; if (location == "screen") { read(C, cin); } else { ifstream fin(location.c_str()); if (!fin) { cout << "ERROR: could not open file " << location << endl; exit(1); } read(C, fin); } cout << "load OK" << endl; } else if (command == "save") { } else if (command == "makechair"){ Member newChair; cout<<"Enter the name of the new chair: "; read(newChair, cin); makeChair(C, newChair); cout << "New chair is "; write(newChair,cout); } else if (command == "writeminutes") { } else { cout << "Unrecognized command!" << endl; } cout << endl; } // end while return 0; }