#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); } } return 0; }