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

📄 mysource.h

📁 开关盒布线的一个简单的程序实现
💻 H
字号:
#if !defined(AFX_MYSOURCE_H__208ABEF3_864B_4519_B079_F0C8AB210939__INCLUDED_)
#define AFX_MYSOURCE_H__208ABEF3_864B_4519_B079_F0C8AB210939__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// mysource.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSeqStack command target

class CSeqStack : public CCmdTarget
{
	DECLARE_DYNCREATE(CSeqStack)

	CSeqStack();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:
	void SetStack(int x);
	unsigned height;
	int GetStackTop();
	bool IsEmptyStack();
	bool IsFullStack();
	void ClearStack();
	int PopStack();
	void PushStack(int x);
	SeqStack(int x);
	int* arr2;
	int* arr;
	int maxsize;
	int* elements;
	int top;
	~CSeqStack();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSeqStack)
	//}}AFX_VIRTUAL

// Implementation
protected:
	 

	// Generated message map functions
	//{{AFX_MSG(CSeqStack)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CInputDlg dialog

class CInputDlg : public CDialog
{
// Construction
public:
	void AddDatabase();
	CSeqStack switchbox;
	CString m_strDir;
	int m_Arr[100];
	int m_nNum;
	bool Match(int num_a, int num_b);
	int Judge();
	void GetSeq();
	void DisplayDatabase();
	CInputDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CInputDlg)
	enum { IDD = IDD_DIALOG1 };
	CListCtrl	m_list;
	CString	m_sSequence;
	int		m_nDown;
	int		m_nLeft;
	int		m_nRight;
	int		m_nUp;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInputDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CInputDlg)
	virtual void OnOK();
	afx_msg void OnLoad();
	afx_msg void OnCheckAndSave();
	afx_msg void OnFindDir();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CTimeSet dialog

class CTimeSet : public CDialog
{
// Construction
public:
	CTimeSet(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTimeSet)
	enum { IDD = IDD_DIALOG2 };
	double	m_time;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTimeSet)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTimeSet)
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};



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

#endif // !defined(AFX_MYSOURCE_H__208ABEF3_864B_4519_B079_F0C8AB210939__INCLUDED_)

⌨️ 快捷键说明

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