Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help with trie program c++

 
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: 48410
56
  • 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