📄 mergesortshowdlg.h
字号:
// MergeSortShowDlg.h : header file
//
#if !defined(AFX_MERGESORTSHOWDLG_H__AC8A0FD2_9271_4FF7_BEAB_23BBC724CCE1__INCLUDED_)
#define AFX_MERGESORTSHOWDLG_H__AC8A0FD2_9271_4FF7_BEAB_23BBC724CCE1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMergeSortShowDlg dialog
#include "stdafx.h"
#include "TextWnd.h"
#include "MoveWnd.h"
#include "afxmt.h"
class CMergeSortShowDlg : public CDialog
{
// Construction
public:
CMergeSortShowDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CMergeSortShowDlg();
void mergesort(int A[], int temo[], int left, int right); //要演示的程序
int fact(int n); //要演示的程序
void inssort(int A[], int n);
int m_A[20];
int m_temp[16];
int m_count;
CDialog *GetDlg();
void SetCodeSentence();
void SetMoveValue(BOOL MoveFlag, BOOL FromA_Flag, BOOL ToA_Flag, int from, int to, int A[], int temp[]);
void ResetCodeSentence();
void ResetStackSentence();
void SetCode(int pos);
BOOL SetValue(int n, int s);
int m_Stack_Top; //堆栈的栈顶,初始化为-1;
CString m_Stack_Str;
void PushStack(CString CallStr);
void PopStack();
CWinThread *m_pShowThread;
CEvent mStepEvent;
BOOL mExist;
int m_step;
CTextWnd *m_pCodeDisplayWnd; // 源程序显示框
CTextWnd *m_pStackDisplayWnd; // 堆栈显示框
CMoveWnd *m_pMoveDisplayWnd; // 堆栈显示框
// CString ValueShow; // 变量值显示
// Dialog Data
//{{AFX_DATA(CMergeSortShowDlg)
enum { IDD = IDD_MERGESORTSHOW_DIALOG };
int m_MultiNum;
CString m_ValueShow1;
CString m_ValueShow2;
CString m_ValueShow3;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMergeSortShowDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMergeSortShowDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStartShow();
afx_msg void OnSingleStep();
afx_msg void OnMultiStep();
virtual void OnCancel();
afx_msg void OnEndShow();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MERGESORTSHOWDLG_H__AC8A0FD2_9271_4FF7_BEAB_23BBC724CCE1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -