资源简介
对文章进行扫描并分析,检查是否存在敏感词汇并报告出现次数。
使用图形用户界面实现。
任意选择一个文本文件,分析该文件,如果存在敏感词汇,报告每个词
出现的次数。敏感词汇保存在sentive.txt 文件中,每个词占一行,至少设置30
个敏感词汇。系统中可以增加、删除、修改敏感词汇。

代码片段和文件信息
// SentiveFd.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “SentiveFd.h“
#include “SentiveFdDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSentiveFdApp
BEGIN_MESSAGE_MAP(CSentiveFdApp CWinApp)
//{{AFX_MSG_MAP(CSentiveFdApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSentiveFdApp construction
CSentiveFdApp::CSentiveFdApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CSentiveFdApp object
CSentiveFdApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CSentiveFdApp initialization
BOOL CSentiveFdApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CSentiveFdDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3633 2012-08-29 08:50 SentiveFd\ReadMe.txt
文件 1009 2012-08-29 16:49 SentiveFd\resource.h
文件 3 2012-08-29 16:28 SentiveFd\sentive.txt
文件 20492 2012-08-30 22:53 SentiveFd\SentiveFd.aps
文件 1183 2012-08-30 22:54 SentiveFd\SentiveFd.clw
文件 2105 2012-08-29 08:50 SentiveFd\SentiveFd.cpp
文件 4217 2012-08-29 10:38 SentiveFd\SentiveFd.dsp
文件 526 2012-08-29 08:50 SentiveFd\SentiveFd.dsw
文件 1357 2012-08-29 08:50 SentiveFd\SentiveFd.h
文件 74752 2012-08-30 22:54 SentiveFd\SentiveFd.ncb
文件 846 2012-08-30 22:53 SentiveFd\SentiveFd.plg
文件 5187 2012-08-29 16:49 SentiveFd\SentiveFd.rc
文件 9175 2012-08-29 16:55 SentiveFd\SentiveFdDlg.cpp
文件 1722 2012-08-29 16:37 SentiveFd\SentiveFdDlg.h
文件 200 2012-08-28 12:34 SentiveFd\sentive_副本.txt
文件 211 2012-08-29 08:50 SentiveFd\StdAfx.cpp
文件 1054 2012-08-29 08:50 SentiveFd\StdAfx.h
文件 1078 2012-08-29 08:50 SentiveFd\res\SentiveFd.ico
文件 401 2012-08-29 08:50 SentiveFd\res\SentiveFd.rc2
文件 14 2012-08-30 06:25 SentiveFd\Debug\sentive.txt
文件 5489664 2012-08-30 22:53 SentiveFd\Debug\SentiveFd.bsc
文件 122929 2012-08-30 22:53 SentiveFd\Debug\SentiveFd.exe
文件 263672 2012-08-30 22:53 SentiveFd\Debug\SentiveFd.ilk
文件 37624 2012-08-29 10:28 SentiveFd\Debug\SentiveFd.obj
文件 7169668 2012-08-29 10:28 SentiveFd\Debug\SentiveFd.pch
文件 443392 2012-08-30 22:53 SentiveFd\Debug\SentiveFd.pdb
文件 2584 2012-08-29 16:49 SentiveFd\Debug\SentiveFd.res
文件 0 2012-08-29 10:28 SentiveFd\Debug\SentiveFd.sbr
文件 0 2012-08-30 22:53 SentiveFd\Debug\SentiveFdDlg.sbr
文件 105661 2012-08-29 10:28 SentiveFd\Debug\StdAfx.obj
............此处省略11个文件信息
相关资源
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 用VC 编写的仿QQ聊天室程序源代码
- 外点法程序
- 外罚函数程序
- qt-电子点菜系统
- 推箱子及人工智能寻路C 源代码
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
-
ob
jectARX给Auto CAD加工具条 - 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- c 课程设计 职工信息管理系统
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- 清华大学 c 郑莉 ppt课件
- c 程序判断离散数学中命题公式
- 多项式求和(数据结构C 版)
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- 协同过滤算法源码
- 用C 实现的对网络上的ARP数据包进行
评论
共有 条评论