#include "Committee.h" int main() { Committee C; string command; while(cin >> command && command != "quit") { ////// LOAD COMMAND ////// if (command == "load") { string source; cin >> source; if (source == "keyboard") read(C,cin); else { ifstream fin(source.c_str()); read(C,fin); } } ///// SAVE COMMAND ///// if (command == "save") { string name; cin >> name; ofstream fout(name.c_str()); write(C,fout); } ///// MAKECHAIR COMMAND ///// if (command == "makechair") { Member M; read(M,cin); makechair(C,M); } ///// WRITEMINUTES COMMAND ///// if (command == "writeminutes") { string name; cin >> name; ofstream fout(name.c_str()); writeminutes(C,fout); } } return 0; }