The Dictionary Project
Your purpose is to create a wordlist. When you succeed at this, you will use this class to create a dictionary. You will also use the wordlist to create a thesaurus.
Points |
Task |
5 |
The wordlist words |
5 |
The dictionary works |
5 |
The thesaurus works |
-3 |
Turned in on final’s week |
-3 |
Turned in after Tuesday of final’s week |
int
main() {
Wordlist w = new Wordlist();
w.add(“space”);
w.add(“gravity”);
w.add(“toxic”);
cout << w;
w.del(“space”);
w.del(“notfound”);
w.add(“RV”);
cout << w;
}
int
main() {
Wordlist w = new Dictionary();
w.add(“space”, “The Final Frontier”);
w.add(“gravity”, “A spaceman’s arch enemy”);
w.add(“toxic”, “What most fuel’s are”);
cout << w;
w.del(“space”);
w.del(“notfound”);
w.add(“RV”, “A rec vehicle”);
cout << w;
}
int
main() {
Wordlist w = new Thesaurus();
w.add(“space”, “void, empty”, “enclosure”);
w.add(“gravity”, “downforce”, “freedom, lift”);
w.add(“toxic”, “poisen, icky”, “”);
cout << w;
w.del(“space”);
w.del(“notfound”);
w.add(“RV”, “A rec vehicle”, “a sports car”);
cout << w;
}