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

📄 页面置换dlg.h

📁 vc开发的关于操作系统的液面置换的模拟
💻 H
字号:
// 页面置换Dlg.h : header file
//

#if !defined(AFX_DLG_H__9BB575A8_8F69_4537_A961_C8E53A2BEDB5__INCLUDED_)
#define AFX_DLG_H__9BB575A8_8F69_4537_A961_C8E53A2BEDB5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	void BlockClear(int Bsize);
	int findReplace(int Bsize);
	int findExist(int curpage,int Bsize);
	int findSpace(int Bsize);
	CMyDlg(CWnd* pParent = NULL);
	struct pageInfor
{
int content;//页面号
int timer;//被访问标记
};
pageInfor * block;//物理块
pageInfor * page;
//页面号串
// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	int		m_Bsize;
	int		m_Psize;
	CString	m_yemian;
	CString	m_str;
	int		m_i1;
	float	m_i2;
	int		m_j1;
	float	m_j2;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	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 OnButton2();
	afx_msg void OnButton3();
	virtual void OnCancel();
	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_DLG_H__9BB575A8_8F69_4537_A961_C8E53A2BEDB5__INCLUDED_)

⌨️ 快捷键说明

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