data.h

来自「Neural Network program for pattern class」· C头文件 代码 · 共 85 行

H
85
字号
#if !defined(AFX_DATA_H__BC12E15D_6D77_4B70_BC92_5F642C714FAD__INCLUDED_)
#define AFX_DATA_H__BC12E15D_6D77_4B70_BC92_5F642C714FAD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Data.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// Data document
class Regress
{
public:
	double x1;
	double x2;
	double noise;
	Regress() {
		x1=0.0;
		x2=0.0;
		noise=0.0;
	}
};
class Iris
{
public:
	double sepalLeng;
	double sepalWid;
	double petalLeng;
	double petalWid;
	double Desire[3];
	Iris() {
		sepalLeng = 0.0;
		sepalWid = 0.0;
		petalLeng = 0.0;
		petalWid = 0.0;
		Desire[0] = 0.0;
		Desire[1] = 0.0;
		Desire[2] = 0.0;
	}
};

class Data : public CDocument
{
protected:
	Data();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(Data)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Data)
	public:
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
	protected:
	virtual BOOL OnNewDocument();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~Data();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(Data)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DATA_H__BC12E15D_6D77_4B70_BC92_5F642C714FAD__INCLUDED_)

⌨️ 快捷键说明

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