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

📄 heartdmview.h

📁 一个含有朴素贝耶斯分类方法和决策树分类方法的源代码
💻 H
字号:
// HeartDMView.h : interface of the CHeartDMView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HEARTDMVIEW_H__8084EA55_8777_48C0_928A_F91C5024CF5C__INCLUDED_)
#define AFX_HEARTDMVIEW_H__8084EA55_8777_48C0_928A_F91C5024CF5C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Baye.h"
#include "Tree.h"	// Added by ClassView

class CHeartDMDoc;
class CBaye;
class CTree;
class CHeartDMView : public CListView
{
protected: // create from serialization only

	DECLARE_DYNCREATE(CHeartDMView)

// Attributes
public:
	CHeartDMView();
	CHeartDMDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHeartDMView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	CTree C5tree;
	void BayesianClass();//调入贝叶斯分类方法
	CBaye bayesian;//贝叶斯分类方法对象
	void InputData();//输入记录
	void PrepareData();//实现样本记录分层
	void PrepareDataDel();//删除pheart表中记录
	void ListPrepareRecord();//显示pheart表中记录
	void RemoveAll();//清屏
	void UserDelete();//删除heart表中记录
	void UserAdd(CString s[14]);//从lpBuffer中导入行到s[]中
	void InDatabase();//分行往数据库中添加数据
	int nFileLength;//文本文件长度
	void OnFileImport();//从文本文件中导入数据到lpBuffer中
	void ListUser();//显示heart表中记录
	char* lpBuffer;//在内存中保存文本文件内容
	virtual ~CHeartDMView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHeartDMView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in HeartDMView.cpp
inline CHeartDMDoc* CHeartDMView::GetDocument()
   { return (CHeartDMDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HEARTDMVIEW_H__8084EA55_8777_48C0_928A_F91C5024CF5C__INCLUDED_)

⌨️ 快捷键说明

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