segword.cpp
来自「用字典进行预料的切词」· C++ 代码 · 共 31 行
CPP
31 行
// SegWord.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "segtool.h"
int main(int argc, char* argv[])
{
CSegTool SegTool;
int nKey = 0;
char szRes[1024];
printf("Hello World!\n");
SegTool.InitSegTool("Wordlist.dic");
//SegTool.GetOneWord("中华民国",szWord);
//printf("%s",szWord);
//char *pRes = NULL;
//if( SegTool.SegSentence(10, "一个国家政府,在选择社会制度的时候,都是本着为广大人民谋幸福的愿望来设计宏伟蓝",szRes,pRes) == -1){
// return false;
//}
//puts(szRes);
//puts(pRes);
SegTool.SegFile("test.txt","TestRes.txt");
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?