Exemplo n.º 1
0
void readDict() {
    ifstream f("dictionary");
    string g;
    for(;!f.eof();) {
        getline(f,g);
        string pre;
        for(int i=0; i<=55 && i<g.size(); ++i) {
            pre+=g[i];
            dictp[i+1].insert(pre);
            dictp[i+1].insert("");
        }
        dict.insert(g);
    }
}