示例#1
0
文件: main.cpp 项目: blueyi/cpp_study
int main()
{
    std::ifstream file("test.txt");

    TextQuery tQuery(file);

    Query q = Query("fieryzzz")  | Query("wind");

    std::cout << q.eval(tQuery);

    return 0;
}
示例#2
0
文件: main.cpp 项目: kukys/primer
int main()
{
    std::ifstream file("E:/mingw/project/15_39/test.txt");

    TextQuery tQuery(file);

	  Query q = Query("hair")|Query("Alice");

    std::cout << q.eval(tQuery);

	std::cin.get();
    return 0;
}