global.cpp
来自「通过VC编程实现收词程序,并且通过编程实现数据库的建立,并且建立了索引」· C++ 代码 · 共 27 行
CPP
27 行
#include "stdafx.h"
#include "global.h"
void FindWordFile(CString strPath, CStringArray * pArray);
void FindWordFile(CString strPath, CStringArray * pArray)
{
_chdir((LPCTSTR) strPath);
CFileFind f;
BOOL b = f.FindFile("*.*", 0) ;
while ( b )
{
b = f.FindNextFile();
if(f.IsDots() ) continue;
if(f.IsDirectory())
FindWordFile( f.GetFilePath(), pArray);
else
{
if (f.IsArchived())
pArray->Add (f.GetFilePath() );
}
}
f.Close();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?