📄 segword.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -