📄 lexicon.h
字号:
#ifndef _LEXICON_H_
#define _LEXICON_H_
#define MAX_WORD_LEN 20 //每个词最多10个汉字
#define HEAD_LEN 108783 //申请空间时的最大词条数
#define LEXICON_LEN 108783 //词典中现有词条数108783
//define word item
typedef struct word_item
{
int word_id;
char chinese_str[MAX_WORD_LEN];
int freq;
}word_item;
//define lexicon
typedef struct Lexicon
{
char license_info[256];
int item_num_of_lexicon_head;
int item_num_of_lexicon_body;
word_item lexicon_head[HEAD_LEN];
}lexicon;
#endif //_LEXICON_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -