📄 attemperdlg.h
字号:
// AttemperDlg.h : header file
//
#if !defined(AFX_ATTEMPERDLG_H__E4A7D89C_A5A9_40A5_8171_0EB4A20776D9__INCLUDED_)
#define AFX_ATTEMPERDLG_H__E4A7D89C_A5A9_40A5_8171_0EB4A20776D9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CAttemperDlg dialog
typedef struct
{
int time;
int space;
int num;
COleDateTime refer;
}TASK;
class CAttemperDlg : public CDialog
{
// Construction
public:
bool m_default;
int CountSecond(COleDateTime oletime);
COleDateTime AddTime(COleDateTime ctime,int n);
void Init();
void SetTime();
void ArrayToV();
void Smjf(TASK task[],int n);
void Sjf(TASK task[],int n);
void Fcfs(TASK task[],int n);
int TimeToSpace(int time);
CAttemperDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAttemperDlg)
enum { IDD = IDD_ATTEMPER_DIALOG };
CButton m_start;
int m_time1;
int m_time2;
int m_time3;
int m_time4;
int m_time5;
int m_space2;
int m_space3;
int m_space4;
int m_space5;
int m_space1;
CString m_fcfs;
int m_fcfstotaltime;
CString m_sjf;
int m_sjftotaltime;
CString m_smjf;
int m_smjftotaltime;
COleDateTime m_refer1;
COleDateTime m_refer3;
COleDateTime m_refer2;
COleDateTime m_refer4;
COleDateTime m_refer5;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAttemperDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CAttemperDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnClickok();
afx_msg void OnStart();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnReferatonce();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ATTEMPERDLG_H__E4A7D89C_A5A9_40A5_8171_0EB4A20776D9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -