1 Star 0 Fork 0

匿名者/项目boost搜索引擎

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
debug.cpp 645 Bytes
一键复制 编辑 原始数据 按行查看 历史
匿名者 提交于 2024-09-20 19:14 . 测试
#include <iostream>
#include "Search.hpp"
#include <cstdio>
const string input = "data/raw_html/raw.txt";
int main()
{
project_search::search* test_search = new project_search::search();
test_search->Initsearch(input);
string keyword;
string json_word;
char inbuffer[1024];
while(true)
{
cout<<"Please enter keyword :";
fgets(inbuffer,sizeof(inbuffer)-1,stdin);
cout << strlen(inbuffer) << endl;
inbuffer[strlen(inbuffer)-1]= 0;//"\0"
keyword = inbuffer;
test_search->Search(keyword,&json_word);
cout<<keyword<<endl;
cout<<json_word<<endl;
}
return 0;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/adexiur/project-boost-search-engine.git
git@gitee.com:adexiur/project-boost-search-engine.git
adexiur
project-boost-search-engine
项目boost搜索引擎
master

搜索帮助