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

📄 global.cpp

📁 通过VC编程实现收词程序,并且通过编程实现数据库的建立,并且建立了索引
💻 CPP
字号:

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -