Created
June 1, 2011 05:52
-
-
Save sprite2005/1001849 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <string> | |
using std::string; | |
using std::map; | |
using std::pair; | |
class CSpriteTrieNode | |
{ | |
public: | |
CSpriteTrieNode(); | |
~CSpriteTrieNode(); | |
map<char, CSpriteTrieNode*> *m_pNodeMap; | |
bool m_bIsWord; | |
}; | |
class CSpriteTrie | |
{ | |
public: | |
CSpriteTrie(); | |
~CSpriteTrie(); | |
CSpriteTrieNode m_root; | |
std::string m_wordBuilder; | |
void addWord(const char* string); | |
void findWords(char* availableLetters, CSpriteTrieNode* pNode=NULL); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment