📄 cs2dlg.h
字号:
// cs2Dlg.h : header file
//
#if !defined(AFX_CS2DLG_H__553A20FD_1D33_4392_90FD_394C1ABCBA6C__INCLUDED_)
#define AFX_CS2DLG_H__553A20FD_1D33_4392_90FD_394C1ABCBA6C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//#include<stdio.h>
//#include<stdlib.h>
/////////////////////////////////////////////////////////////////////////////
// CCs2Dlg dialog
class CCs2Dlg : public CDialog
{
// Construction
typedef struct LNode //存储实例和期望值
{
float x1;
float x2;
float y1;
float y2;
struct LNode *next;
}LNode, *LinkList;
public:
CCs2Dlg(CWnd* pParent = NULL); // standard constructor
void readexample(LinkList *L); //从文件读取实例
float MAXE(float E[],int e); //求最大误差
void Print_L(LinkList *L); //输出实例
void See_emax(float EMAX[]); //查看某次学习最大误差
void initiarray(float w1[][4],float w2[][4],float w3[][3]); //随机初始权矩阵
void initiarray2(float w1[][4],float w2[][4],float w3[][3]); //显示初始权矩阵
void printarray(float w1[][4],float w2[][4],float w3[][3]); //输出权矩阵
void learn(LinkList L, float w1[][4],float w2[][4],float w3[][3],float EMAX[]); //学习实例
void assess(float w1[][4],float w2[][4],float w3[][3]); //模糊评判
// Dialog Data
//{{AFX_DATA(CCs2Dlg)
enum { IDD = IDD_CS2_DIALOG };
CString m_maxerr;
CString m_count;
CString m_Learn;
CString m_x1;
CString m_x2;
CString m_y1;
CString m_y2;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCs2Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCs2Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnInputFished();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnChangeEdit5();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CS2DLG_H__553A20FD_1D33_4392_90FD_394C1ABCBA6C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -