Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dictionary/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ TrieNode* Dictionary::removeUtil(TrieNode*temp,string word,int depth=0)

void Dictionary::remove(string word)
{
/*
objective: to remove/delete a word and its meaning from the dictionary

input parameters: word to be deleted

output value: none

*/
removeUtil(root,word);
cout<<"\n\tThe word \""<<word<<" has been successfully removed. ";

Expand Down