⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dict.h

📁 Chinese segmentation in C
💻 H
字号:
#ifndef _DICT_H_040401_
#define _DICT_H_040401_

#include <iostream>
#include <fstream>
#include <string>
#include <map>

using namespace std;

const string DICTFILENAME("words.dict");


/*
typedef struct{
	int id;
	string word;
	int freq;
} DictEntry;
*/

class CDict
{
    
public:
	CDict();
	~CDict();
	  
	bool GetFreq(string&) const {return false;};
	bool IsWord(string&) const;
	void AddFreq(string&) {};
	  
private:
	map<string, int> mapDict;
	void OpenDict();	  
};

#endif /* _DICT_H_040401_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -