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

📄 dic.cpp

📁 自己写的简单分词程序
💻 CPP
字号:
#include "Dic.h"


Dic::Dic()
{
	this->pFile = NULL;
	this->iRepeatedNum = 0;
}

bool Dic::LoadDic()
{

	pFile = fopen("dict.txt","r");
	
	if(pFile == NULL)
	{
		return false;
	}
	else
	{
		return true;
	}
}

void Dic::ReadDic()
{

	 char buff[256];
	 char *pChTemp;
	 
	 while(fgets(buff,sizeof(buff)-1,pFile))
	 {
		pChTemp = strtok(buff,"\r\n\t");
		this->DicArr.push_back(pChTemp);
	 }
	 cout<<"Loading Dic is completing!"<<endl;
}

⌨️ 快捷键说明

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