From 505815539f83424168b8c853a89efe83282cb515 Mon Sep 17 00:00:00 2001 From: mohit0003 <31645375+mohit0003@users.noreply.github.com> Date: Tue, 8 Oct 2019 23:40:02 +0530 Subject: [PATCH] documentation of insert function --- Dictionary/dictionary.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dictionary/dictionary.cpp b/Dictionary/dictionary.cpp index a7b3e1d..56d3161 100644 --- a/Dictionary/dictionary.cpp +++ b/Dictionary/dictionary.cpp @@ -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