📄 dic.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 + -