![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
爱码hyatt_hu
小猿一枚。
展开
-
利用指定文件进行参考以进行单词的转换
#include #include #include #include #include #include using namespace std; ifstream& openfile(ifstream &in, const string &filename){ in.close();//close in case it was alr原创 2015-11-07 17:36:44 · 243 阅读 · 0 评论 -
C++中使用STL的hashmap
大致能看懂作者想表达的意思,但是叫我写的话,估计没戏,所以呢,就将它用手抄了一遍,以此为证。。。原创 2015-11-06 23:34:05 · 1285 阅读 · 0 评论 -
查找字典中具有某个公共前缀的所有单词
## Trie.h ## #include<set> #include<string>#define BRANCH 26 using namespace std; struct Node { Node * next[BRANCH]; int prefix; //此前缀的单词个数 bool isStr; Node() : prefix(0), isStr(fal原创 2015-12-26 13:58:02 · 527 阅读 · 0 评论