int main() { TextQuery tx; string filename="in.txt"; tx.read_file(filename); tx.build_map(); tx.query_word("me"); }
int main() { TextQuery tq; tq.read_file("test.txt"); tq.build_map(); // tq.debug(); cout << "Query:" << endl; string word; while(cin >> word) { tq.query_word(word); } return 0; }