#include #include #include using namespace std; #include "Committee.h" int main() { cout << "welcome, enter command: "; string command; Committee myCommittee; // get next command and process it while ( cin >> command && command != "quit" ) { if (command == "load") { string filename; cin >> filename; ifstream fin(filename.c_str()); read(myCommittee, fin); } else if (command == "save") { string filename; cin >> filename; ofstream fout(filename.c_str()); write(myCommittee, fout); } } return 0; }