#include #include "wordlist.h" using namespace std; int main(){ WordList wl; wl.add("monkey"); wl.add("eel"); wl.add("swordfish"); wl.add("lamprey"); wl.add("seahorse"); cout << wl << endl; for(;;){ cout << "Enter the name of a creature (EOF to stop): "; string tofind; if(!(cin >> tofind)) break; if(wl.find(tofind)) cout << "That's already in our list!\n"; else wl.add(tofind); cout << "New List: " << wl << endl; } cout << "\nFinal List: " << wl << endl; return 0; }