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

📄 dictionarydoc.cpp

📁 这是我的中文信息处理的小作业
💻 CPP
字号:
// DICTIONARYDoc.cpp : implementation of the CDICTIONARYDoc class
//

#include "stdafx.h"
#include "DICTIONARY.h"

#include "DICTIONARYDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYDoc

IMPLEMENT_DYNCREATE(CDICTIONARYDoc, CDocument)

BEGIN_MESSAGE_MAP(CDICTIONARYDoc, CDocument)
	//{{AFX_MSG_MAP(CDICTIONARYDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYDoc construction/destruction

CDICTIONARYDoc::CDICTIONARYDoc()
{
	// TODO: add one-time construction code here
//str1="说明:";
//str2="如果您要重新编译此程序的dsw文件,请务必把DICTIONARY文件夹放入c盘,否则编译时会因找不到词库文件ks.txt,";
//str3="而导致程序无法正常执行。如果直接执行exe文件的话,就不必作上一步骤了。";
str4="附加说明:";
str5="输入句子时请不要输入标点符号,否则结果一定会出错!";
str6="一共有四种匹配,其中为了让两个逆向匹配的结果能正向输出而使用了链表。";
str7="所以匹配结果可能会出来的比较慢,请耐心等待。水平有限,敬请原谅!";
str8="班级:计算机(1)班";
str9="姓名:康 珊";
str10="学号:020964";
}

CDICTIONARYDoc::~CDICTIONARYDoc()
{
}

BOOL CDICTIONARYDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYDoc serialization

void CDICTIONARYDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYDoc diagnostics

#ifdef _DEBUG
void CDICTIONARYDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CDICTIONARYDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYDoc commands

⌨️ 快捷键说明

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