📄 metrixdlg.h
字号:
// MetrixDlg.h : header file
//
#if !defined(AFX_METRIXDLG_H__B788F8F4_EA63_4048_A906_983336439623__INCLUDED_)
#define AFX_METRIXDLG_H__B788F8F4_EA63_4048_A906_983336439623__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
#define V5_COMPAT
#include "mat.h"
#define V5_COMPT
#include "matrix.h"
#define V5_COMPT
#include "engine.h"
#include "string.h"
#include <memory.h>
#include <shlobj.h>
#define MAX 500
class CMetrixDlg : public CDialog
{
// Construction
public:
BOOL JM_Matrix(unsigned char *A_ch,int M, int N,long int key);
double JM_EGD_Computer(unsigned char *A_ch, int M, int N);
BOOL JM_EGD_Matrix(unsigned char*A_ch, int M, int N,long int key);
int EGD_Matrix(int A[][500],int M,int N,long int key);
double EGD_Computer(int a[][500],int M,int N);
int Josephus( unsigned int a[],int length,int start,int no);
CMetrixDlg(CWnd* pParent = NULL); // standard constructor
private:
CString str_path,filename,str_file_extern;
CString img_path_name,img_filename,img_file_extern;
CString img_save_path;
CString mat_Path_Name,mat_Path_Name2,mat_Path;
CString JM_path_name;
Engine *ep;
MATFile *mfp;
mxArray *A_mx,*B_mx,*C_mx,*D_mx,*A_ptr,*B_ptr,*C_ptr,*JMA_ptr;
char buffer[301];
int i,j,str_length;
int M,N;
// int A_arr[MAX][MAX];
// int tem_arr[MAX][MAX];//B_arr[MAX][MAX];
int flag_run,flag_jm;
double EGD,EGD_NEW,JM_EGD,JM_EGD_NEW;
struct node
{
int num;
struct node *next;
};
// Dialog Data
//{{AFX_DATA(CMetrixDlg)
enum { IDD = IDD_METRIX_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMetrixDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
long int StringTOInt(CString m_str);
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMetrixDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonOpen();
afx_msg void OnDestroy();
afx_msg void OnShowOld();
afx_msg void OnOpenImg();
afx_msg void OnOldZhifang();
afx_msg void OnShowNew();
afx_msg void OnNewZhifang();
afx_msg void OnCompare();
afx_msg void OnJmOpen();
afx_msg void OnJmCompare();
afx_msg void OnJmOld();
afx_msg void OnJmZhifang();
afx_msg void OnJmhNew();
afx_msg void OnJmhZhifang();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_METRIXDLG_H__B788F8F4_EA63_4048_A906_983336439623__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -