This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need help with trie program c++  RSS feed

 
Karen Wilson
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create a program using tries where i can insert, search, delete and print words. I have the code for insert and search but i am not sure how to call the functions in main.cpp
I am getting an error 'letter' is being used with being initialized. i know the pointers are wrong so could someone help? This is all my code

Here are the two header files:
Entry.h



TrieType.h


here is main.cpp:
 
vladimir ilic
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This is how your Entry.h file should looks like.
Can anybody tell me how to make function to print all words from trie?
 
Campbell Ritchie
Sheriff
Posts: 55292
156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!