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
9 changes: 9 additions & 0 deletions Dictionary/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ TrieNode::TrieNode():meaning("")
}
void Dictionary::insert(string word, string meaning)
{
/*
objective: inserting a word and its meaning in the dictionary

input parameters: word: word to be inserted
meaning:-meaning of the word inserted

output value: none

*/
int i,index;
TrieNode *temp=root;
for(i=0;i<word.length();i++)
Expand Down